diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | openbsd-compat/bsd-getpeereid.c | 5 |
2 files changed, 11 insertions, 2 deletions
@@ -1,4 +1,8 @@ | |||
1 | 2006086 | 1 | 20060806 |
2 | - (djm) [openbsd-compat/bsd-getpeereid.c] Add some headers to quiet warnings | ||
3 | on Solaris 10 | ||
4 | |||
5 | 20060806 | ||
2 | - (dtucker) [defines.h] With the includes.h changes we no longer get the | 6 | - (dtucker) [defines.h] With the includes.h changes we no longer get the |
3 | name clash on "YES" so we can remove the workaround for it. | 7 | name clash on "YES" so we can remove the workaround for it. |
4 | - (dtucker) [openbsd-compat/{bsd-asprintf.c,bsd-openpty.c,bsd-snprintf.c, | 8 | - (dtucker) [openbsd-compat/{bsd-asprintf.c,bsd-openpty.c,bsd-snprintf.c, |
@@ -5200,4 +5204,4 @@ | |||
5200 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM | 5204 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM |
5201 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu | 5205 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu |
5202 | 5206 | ||
5203 | $Id: ChangeLog,v 1.4476 2006/08/06 11:25:24 dtucker Exp $ | 5207 | $Id: ChangeLog,v 1.4477 2006/08/07 01:26:36 djm Exp $ |
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) |