]> git.ipfire.org Git - thirdparty/util-linux.git/commit
namespace.h: fix compilation on Linux < 4.10
authorThomas Devoogdt <thomas@devoogdt.com>
Mon, 7 Apr 2025 12:20:12 +0000 (14:20 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 8 Apr 2025 08:50:59 +0000 (10:50 +0200)
commite28ce84b2ebec03082dd9045e9be18785ec4dbd2
tree6a5612243070a58e9f9c6e51b12477c8a76316b3
parent138117a83e79956fb23410ab3dca82ac247add6f
namespace.h: fix compilation on Linux < 4.10

sys-utils/lsns.c: In function ‘add_namespace_from_sock’:
sys-utils/lsns.c:580:19: error: ‘SIOCGSKNS’ undeclared (first use in this function)
  nsfd = ioctl(sk, SIOCGSKNS);
                   ^~~~~~~~~

SIOCGSKNS was added in https://github.com/torvalds/linux/commit/c62cce2caee558e18aa05c01c2fd3b40f07174f2.

Fixes: https://github.com/util-linux/util-linux/issues/3502
Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
(cherry picked from commit 10ee66ed1b08586bde42582e34355418eef33ef5)
include/namespace.h