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 /openbsd-compat | |
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 'openbsd-compat')
-rw-r--r-- | openbsd-compat/openbsd-compat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsd-compat/openbsd-compat.h b/openbsd-compat/openbsd-compat.h index 4a16702ef..e5fd6f5bb 100644 --- a/openbsd-compat/openbsd-compat.h +++ b/openbsd-compat/openbsd-compat.h | |||
@@ -197,7 +197,7 @@ int writev(int, struct iovec *, int); | |||
197 | #include "bsd-waitpid.h" | 197 | #include "bsd-waitpid.h" |
198 | #include "bsd-poll.h" | 198 | #include "bsd-poll.h" |
199 | 199 | ||
200 | #ifndef HAVE_GETPEEREID | 200 | #if defined(HAVE_DECL_GETPEEREID) && HAVE_DECL_GETPEEREID == 0 |
201 | int getpeereid(int , uid_t *, gid_t *); | 201 | int getpeereid(int , uid_t *, gid_t *); |
202 | #endif | 202 | #endif |
203 | 203 | ||