]> granicus.if.org Git - p11-kit/commitdiff
build: check for getpeereid
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Thu, 23 Feb 2017 05:52:38 +0000 (09:52 +0400)
committerDaiki Ueno <ueno@gnu.org>
Fri, 24 Feb 2017 08:53:25 +0000 (09:53 +0100)
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().

configure.ac

index ec2c259d6dc0210d25a4e71d290e7eafae3d7104..12feff8c2b69fb68c8ef1abfc5418959767aba22 100644 (file)
@@ -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],