kumquat-buildroot/package/ltp-testsuite/0008-utils-compat_16-Always-include-sys-fsuid.h.patch
Petr Vorel eee5e432ed package/ltp-testsuite: backport 3 more musl related patches
0009-nfsv4-acl-Remove-unneeded-malloc-sizeof-FILE.patch is fixing
following reports (other 2 has not been reported due previous)

Fixes:
http://autobuild.buildroot.net/results/a38a5d8deaa365f73db427911df68dd10c6930a6
http://autobuild.buildroot.net/results/dfa173caea08876ab69dd959da146b75750cdd28
http://autobuild.buildroot.net/results/1e602f1574e9134a44d5d66838e7851b38e8069a
http://autobuild.buildroot.net/results/f1b4b129ec94795b2144b4501b4301fb20892e71

Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-11-20 22:00:24 +01:00

53 lines
1.6 KiB
Diff

From 7b614a0c352fdaae883b0409a94c68bf06bfe914 Mon Sep 17 00:00:00 2001
From: Petr Vorel <petr.vorel@gmail.com>
Date: Sun, 17 Nov 2019 11:40:26 +0100
Subject: [PATCH] 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 <petr.vorel@gmail.com>
[Upstream status: 7b614a0c352fdaae883b0409a94c68bf06bfe914]
---
testcases/kernel/syscalls/utils/compat_16.h | 2 --
testcases/kernel/syscalls/utils/compat_tst_16.h | 2 --
2 files changed, 4 deletions(-)
diff --git a/testcases/kernel/syscalls/utils/compat_16.h b/testcases/kernel/syscalls/utils/compat_16.h
index 5b0338d38..75d5d2d28 100644
--- a/testcases/kernel/syscalls/utils/compat_16.h
+++ b/testcases/kernel/syscalls/utils/compat_16.h
@@ -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>
diff --git a/testcases/kernel/syscalls/utils/compat_tst_16.h b/testcases/kernel/syscalls/utils/compat_tst_16.h
index 3b86ef3e3..09fa8b0d8 100644
--- a/testcases/kernel/syscalls/utils/compat_tst_16.h
+++ b/testcases/kernel/syscalls/utils/compat_tst_16.h
@@ -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>
--
2.23.0