From 7b5fb7d9e88bf848173363f5a1e2a0f1db6c7293 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sat, 8 Oct 2011 12:10:20 +0200 Subject: replace: Add don't include unistd.h directly and add uid_wrapper. --- lib/replace/system/network.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'lib/replace/system/network.h') diff --git a/lib/replace/system/network.h b/lib/replace/system/network.h index a4e6a7e31a..7cb8d7becf 100644 --- a/lib/replace/system/network.h +++ b/lib/replace/system/network.h @@ -31,6 +31,8 @@ #error "AC_LIBREPLACE_NETWORK_CHECKS missing in configure" #endif +#include + #ifdef HAVE_SYS_SOCKET_H #include #endif @@ -374,4 +376,15 @@ struct addrinfo { #endif /* SOCKET_WRAPPER_DISABLE */ #endif /* SOCKET_WRAPPER */ +#ifdef UID_WRAPPER +# ifndef UID_WRAPPER_DISABLE +# ifndef UID_WRAPPER_NOT_REPLACE +# define UID_WRAPPER_REPLACE +# endif /* UID_WRAPPER_NOT_REPLACE */ +# include "../uid_wrapper/uid_wrapper.h" +# endif /* UID_WRAPPER_DISABLE */ +#else /* UID_WRAPPER */ +# define uwrap_enabled() 0 +#endif /* UID_WRAPPER */ + #endif -- cgit