Add getpeerid compat.

This commit is contained in:
Nicholas Marriott
2022-03-08 11:02:17 +00:00
parent 54d2249716
commit afd9b68d10
2 changed files with 50 additions and 1 deletions

View File

@ -160,6 +160,7 @@ AC_REPLACE_FUNCS([ \
freezero \
getdtablecount \
getdtablesize \
getpeereid \
getline \
getprogname \
memmem \
@ -169,7 +170,7 @@ AC_REPLACE_FUNCS([ \
strlcat \
strlcpy \
strndup \
strsep \
strsep
])
AC_FUNC_STRNLEN
@ -684,6 +685,14 @@ AC_CHECK_DECL(
[#include <sys/prctl.h>]
)
# Look for setsockopt(SO_PEERCRED).
AC_CHECK_DECL(
SO_PEERCRED,
AC_DEFINE(HAVE_SO_PEERCRED),
,
[#include <sys/socket.h>]
)
# Look for fcntl(F_CLOSEM).
AC_CHECK_DECL(
F_CLOSEM,