aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>2017-04-18 16:18:01 +0200
committerFabian Groffen <grobian@gentoo.org>2017-09-18 11:25:02 +0200
commit8b242e9fde2fa6fdccaa31b3c99f92e04fe2bcd3 (patch)
treeb5a17234ae19ec7c358cbfb12db8492e4a7d900d
parentscanelf: fix out-of-bounds access in ia64 (diff)
downloadpax-utils-8b242e9fde2fa6fdccaa31b3c99f92e04fe2bcd3.tar.gz
pax-utils-8b242e9fde2fa6fdccaa31b3c99f92e04fe2bcd3.tar.bz2
pax-utils-8b242e9fde2fa6fdccaa31b3c99f92e04fe2bcd3.zip
check for linux/securebits.h, missing on Linux 2.6.32
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rw-r--r--configure.ac2
-rw-r--r--porting.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 3b4de91..a22e11a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -62,6 +62,8 @@ m4_foreach_w([flag], [
AX_CHECK_COMPILE_FLAG(flag, AS_VAR_APPEND([CFLAGS], " flag"))
])
+AC_CHECK_HEADERS([linux/securebits.h])
+
AC_CONFIG_FILES([
Makefile
autotools/gnulib/Makefile
diff --git a/porting.h b/porting.h
index 1c04337..636e862 100644
--- a/porting.h
+++ b/porting.h
@@ -46,7 +46,9 @@
#endif
#if defined(__linux__)
# include <sys/prctl.h>
-# include <linux/securebits.h>
+# if !defined(HAVE_CONFIG_H) || defined(HAVE_LINUX_SECUREBITS_H)
+# include <linux/securebits.h>
+# endif
#endif
#if defined(__GLIBC__) || defined(__UCLIBC__) || defined(__ANDROID__)
# include <byteswap.h>