summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac3
-rw-r--r--openbsd-compat/openbsd-compat.h2
2 files changed, 3 insertions, 2 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
1987AC_CHECK_DECLS([h_errno], , ,[#include <netdb.h>]) 1987AC_CHECK_DECLS([h_errno], , ,[#include <netdb.h>])
1988 1988
1989AC_CHECK_DECLS([SHUT_RD], , , 1989AC_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
1995AC_CHECK_DECLS([O_NONBLOCK], , , 1996AC_CHECK_DECLS([O_NONBLOCK], , ,
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
201int getpeereid(int , uid_t *, gid_t *); 201int getpeereid(int , uid_t *, gid_t *);
202#endif 202#endif
203 203