summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorblueness <basile@opensource.dyc.edu>2015-09-11 14:44:10 -0400
committerblueness <basile@opensource.dyc.edu>2015-09-11 14:44:10 -0400
commit0cc8789c71ec4c5d359fb84861a10de6e863ae13 (patch)
tree17a89fbb4b78d69d6a2c680d983eabddf6aef470 /configure.ac
parent6de52b4e649bd77bb3adff7f7c564c90ae1e463e (diff)
parent0e2be0c217028e73073e7f9ccb010cc8b4d756db (diff)
Merge pull request #122 from RomainNaour/musl-fixes
Musl fixes
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index dfa71e44d2..ccb1012d57 100644
--- a/configure.ac
+++ b/configure.ac
@@ -66,8 +66,9 @@ AC_C_INLINE
AC_TYPE_MODE_T
AC_TYPE_PID_T
AC_CHECK_MEMBERS([struct stat.st_rdev])
-AC_CHECK_DECLS([getrandom, gettid, name_to_handle_at, accept4, mkostemp], [], [], [[#include <sys/types.h>
+AC_CHECK_DECLS([getrandom, gettid, name_to_handle_at, accept4, mkostemp, strndupa], [], [], [[#include <sys/types.h>
#include <unistd.h>
+#include <string.h>
#include <sys/mount.h>
#include <fcntl.h>
#include <sys/socket.h>
@@ -223,6 +224,9 @@ else
fi
AC_SUBST(sushell)
+# selinux-util.c uses struct mallinfo which is not available for all C libraries (musl).
+AC_CHECK_FUNCS([mallinfo])
+
# ------------------------------------------------------------------------------
AC_CHECK_DECL([unshare],