]> 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)
committerThomas Devoogdt <thomas.devoogdt@barco.com>
Mon, 7 Apr 2025 12:22:04 +0000 (14:22 +0200)
commit10ee66ed1b08586bde42582e34355418eef33ef5
treeceec428ef0bf810753ecf9a08e0807ff31bd1b3e
parent8aae9e2d2d4bb6392a62857881a82d59380c59cf
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>
include/namespace.h