aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac11
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index edda0d6b..6ca86ea4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -160,6 +160,7 @@ AC_REPLACE_FUNCS([ \
freezero \
getdtablecount \
getdtablesize \
+ getpeereid \
getline \
getprogname \
memmem \
@@ -169,7 +170,7 @@ AC_REPLACE_FUNCS([ \
strlcat \
strlcpy \
strndup \
- strsep \
+ strsep
])
AC_FUNC_STRNLEN
@@ -684,6 +685,14 @@ AC_CHECK_DECL(
[#include <sys/prctl.h>]
)
+# Look for setsockopt(SO_PEERCRED).
+AC_CHECK_DECL(
+ SO_PEERCRED,
+ AC_DEFINE(HAVE_SO_PEERCRED),
+ ,
+ [#include <sys/socket.h>]
+)
+
# Look for fcntl(F_CLOSEM).
AC_CHECK_DECL(
F_CLOSEM,