summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6cb7fdc)
raw | patch | inline | side by side (parent: 6cb7fdc)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 5 Mar 2017 15:46:47 +0000 (16:46 +0100) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 5 Mar 2017 15:46:47 +0000 (16:46 +0100) |
On EPEL6:
src/daemon/common.c: In function 'check_capability':
src/daemon/common.c:1571: error: implicit declaration of function 'CAP_IS_SUPPORTED'
make[1]: *** [src/daemon/common.lo] Error 1
src/daemon/common.c: In function 'check_capability':
src/daemon/common.c:1571: error: implicit declaration of function 'CAP_IS_SUPPORTED'
make[1]: *** [src/daemon/common.lo] Error 1
configure.ac | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index 3d74fd05d99e432cf3cb7a0f21a4b43da8222479..5a265c755faa2dcc76c7bb29345ac2586f3b30bc 100644 (file)
--- a/configure.ac
+++ b/configure.ac
[have_capability="yes"],
[have_capability="no (cap_get_proc() not found)"])
fi
+if test "x$have_capability" = "xyes"; then
+AC_CHECK_DECL([CAP_IS_SUPPORTED],
+ [have_capability="yes"],
+ [have_capability="no (CAP_IS_SUPPORTED not found)"],
+ [[#include <sys/capability.h>]])
+fi
if test "x$have_capability" = "xyes"; then
AC_DEFINE(HAVE_CAPABILITY, 1, [Define to 1 if you have cap_get_proc() (-lcap).])
fi