commit:     8b242e9fde2fa6fdccaa31b3c99f92e04fe2bcd3
Author:     Michael Haubenwallner <michael.haubenwallner <AT> ssi-schaefer 
<DOT> com>
AuthorDate: Tue Apr 18 14:18:01 2017 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Mon Sep 18 09:25:02 2017 +0000
URL:        https://gitweb.gentoo.org/proj/pax-utils.git/commit/?id=8b242e9f

check for linux/securebits.h, missing on Linux 2.6.32

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 configure.ac | 2 ++
 porting.h    | 4 +++-
 2 files changed, 5 insertions(+), 1 deletion(-)

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>

Reply via email to