diff options
Diffstat (limited to 'openbsd-compat')
-rw-r--r-- | openbsd-compat/Makefile.am | 5 | ||||
-rw-r--r-- | openbsd-compat/getpeereid.c (renamed from openbsd-compat/bsd-getpeereid.c) | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/openbsd-compat/Makefile.am b/openbsd-compat/Makefile.am index 2f5b8d14..d2a423c7 100644 --- a/openbsd-compat/Makefile.am +++ b/openbsd-compat/Makefile.am @@ -5,7 +5,6 @@ libopenbsd_compat_a_SOURCES = empty.c libopenbsd_compat_a_SOURCES += arc4random.c libopenbsd_compat_a_SOURCES += SSL_CTX_use_certificate_chain_mem.c libopenbsd_compat_a_SOURCES += base64.c -libopenbsd_compat_a_SOURCES += bsd-getpeereid.c libopenbsd_compat_a_SOURCES += bsd-misc.c libopenbsd_compat_a_SOURCES += bsd-waitpid.c libopenbsd_compat_a_SOURCES += entropy.c @@ -71,6 +70,10 @@ endif #libopenbsd_compat_a_SOURCES += getline.c #endif +#if NEED_GETPEEREID +libopenbsd_compat_a_SOURCES += getpeereid.c +#endif + if NEED_IMSG libopenbsd_compat_a_SOURCES += imsg.c libopenbsd_compat_a_SOURCES += imsg-buffer.c diff --git a/openbsd-compat/bsd-getpeereid.c b/openbsd-compat/getpeereid.c index 5f7e677e..c8ce808f 100644 --- a/openbsd-compat/bsd-getpeereid.c +++ b/openbsd-compat/getpeereid.c @@ -16,8 +16,6 @@ #include "includes.h" -#if !defined(HAVE_GETPEEREID) - #include <sys/types.h> #include <sys/socket.h> @@ -69,5 +67,3 @@ getpeereid(int s, uid_t *euid, gid_t *gid) return (0); } #endif /* defined(SO_PEERCRED) */ - -#endif /* !defined(HAVE_GETPEEREID) */ |