diff options
Diffstat (limited to 'openbsd-compat/bsd-getpeereid.c')
-rw-r--r-- | openbsd-compat/bsd-getpeereid.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/openbsd-compat/bsd-getpeereid.c b/openbsd-compat/bsd-getpeereid.c index d94489d1d..bdae8b637 100644 --- a/openbsd-compat/bsd-getpeereid.c +++ b/openbsd-compat/bsd-getpeereid.c | |||
@@ -18,6 +18,11 @@ | |||
18 | 18 | ||
19 | #if !defined(HAVE_GETPEEREID) | 19 | #if !defined(HAVE_GETPEEREID) |
20 | 20 | ||
21 | #include <sys/types.h> | ||
22 | #include <sys/socket.h> | ||
23 | |||
24 | #include <unistd.h> | ||
25 | |||
21 | #if defined(SO_PEERCRED) | 26 | #if defined(SO_PEERCRED) |
22 | int | 27 | int |
23 | getpeereid(int s, uid_t *euid, gid_t *gid) | 28 | getpeereid(int s, uid_t *euid, gid_t *gid) |