summaryrefslogtreecommitdiff
path: root/openbsd-compat/bsd-getpeereid.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-08-07 11:26:36 +1000
committerDamien Miller <djm@mindrot.org>2006-08-07 11:26:36 +1000
commit0e5143e88e769b91cdd5b19e36a1d2403acc8e22 (patch)
treebe7d3e76c4027c9a11f7fdd1c3e4c3f01ad08720 /openbsd-compat/bsd-getpeereid.c
parentf78fb54412e34c2647c1bc9f895af00620f42730 (diff)
- (djm) [openbsd-compat/bsd-getpeereid.c] Add some headers to quiet warnings
on Solaris 10
Diffstat (limited to 'openbsd-compat/bsd-getpeereid.c')
-rw-r--r--openbsd-compat/bsd-getpeereid.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/openbsd-compat/bsd-getpeereid.c b/openbsd-compat/bsd-getpeereid.c
index d94489d1..bdae8b63 100644
--- a/openbsd-compat/bsd-getpeereid.c
+++ b/openbsd-compat/bsd-getpeereid.c
@@ -18,6 +18,11 @@
#if !defined(HAVE_GETPEEREID)
+#include <sys/types.h>
+#include <sys/socket.h>
+
+#include <unistd.h>
+
#if defined(SO_PEERCRED)
int
getpeereid(int s, uid_t *euid, gid_t *gid)