diff options
author | Darren Tucker <dtucker@dtucker.net> | 2020-02-17 22:48:50 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2020-02-17 22:48:50 +1100 |
commit | d4860ec4efd25ba194337082736797fce0bda016 (patch) | |
tree | 2f326051eb4c17b4ad0fd04755e4f8a556038693 /configure.ac | |
parent | 8aa3455b16fddea4c0144a7c4a1edb10ec67dcc8 (diff) |
Check if getpeereid is actually declared.
Check in sys/socket.h (AIX) and unistd.h (FreeBSD, DragonFLy and OS X).
Prevents undeclared function warning on at least some versions of AIX.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index b689db4b5..7094d470d 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1986,10 +1986,11 @@ AC_CHECK_DECL([tcsendbreak], | |||
1986 | 1986 | ||
1987 | AC_CHECK_DECLS([h_errno], , ,[#include <netdb.h>]) | 1987 | AC_CHECK_DECLS([h_errno], , ,[#include <netdb.h>]) |
1988 | 1988 | ||
1989 | AC_CHECK_DECLS([SHUT_RD], , , | 1989 | AC_CHECK_DECLS([SHUT_RD, getpeereid], , , |
1990 | [ | 1990 | [ |
1991 | #include <sys/types.h> | 1991 | #include <sys/types.h> |
1992 | #include <sys/socket.h> | 1992 | #include <sys/socket.h> |
1993 | #include <unistd.h> | ||
1993 | ]) | 1994 | ]) |
1994 | 1995 | ||
1995 | AC_CHECK_DECLS([O_NONBLOCK], , , | 1996 | AC_CHECK_DECLS([O_NONBLOCK], , , |