From: Roman Bogorodskiy Date: Thu, 23 Feb 2017 05:52:38 +0000 (+0400) Subject: build: check for getpeereid X-Git-Tag: 0.23.5~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bc6fec4422ddc84541776b6f0cfca1542e28f350;p=p11-kit 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(). --- 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],