diff options
author | Roman Bogorodskiy <bogorodskiy@gmail.com> | 2017-02-23 09:52:38 +0400 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2017-02-24 09:53:25 +0100 |
commit | bc6fec4422ddc84541776b6f0cfca1542e28f350 (patch) | |
tree | 60ccfee658dccd28ff6bca94f7dc4849fb63967f | |
parent | 54d9f0799e32796f8e762d8b58ecd4e3dd3fef82 (diff) |
build: check for getpeereid
In common/unix-peer.c, we are checking if HAVE_GETPEEREID is defined,
however, we never actually check if getpeereid() is available, so
fix that by checking this function using AC_CHECK_FUNCS().
-rw-r--r-- | configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index ec2c259..12feff8 100644 --- a/configure.ac +++ b/configure.ac @@ -91,6 +91,7 @@ if test "$os_unix" = "yes"; then AC_CHECK_FUNCS([strnstr memdup strndup strerror_r]) AC_CHECK_FUNCS([fdwalk]) AC_CHECK_FUNCS([setenv]) + AC_CHECK_FUNCS([getpeereid]) # Required functions AC_CHECK_FUNCS([gmtime_r], |