utils/compat_16: Always include <sys/fsuid.h>
PATCH 1/1 utils/compat_16: Always include <sys/fsuid.h>
All major implementations have setfsuid() declaration in <sys/fsuid.h>. This fixes build on musl and (probably) on uclibc).
NOTE: maybe we should guard presence of <sys/fsuid.h> with autotools, but we're not doing that for other it's uses.
Fixes 0e7a99b53 ("setfsgid, setfsuid: clean up and 16-bit version
fixes")
Signed-off-by Petr Vorel <[email protected]>
--- testcases/kernel/syscalls/utils/compat_16.h | 2 -- testcases/kernel/syscalls/utils/compat_tst_16.h | 2 -- 2 files changed, 4 deletions(-)
testcases/kernel/syscalls/utils/compat_16.h +0 -2
@@ -24,9 +24,7 @@#include <errno.h> #include <grp.h> -#if defined(__GLIBC__) || defined(__ANDROID__)#include <sys/fsuid.h> -#endif #include <sys/types.h> #include <unistd.h>
testcases/kernel/syscalls/utils/compat_tst_16.h +0 -2
@@ -21,9 +21,7 @@#include <errno.h> #include <grp.h> -#if defined(__GLIBC__) || defined(__ANDROID__)#include <sys/fsuid.h> -#endif #include <sys/types.h> #include <unistd.h>
Signature · 1 line
2.24.0