]> git.sur5r.net Git - openldap/blobdiff - libraries/liblutil/getpeereid.c
Add acc_rights detection (needs testing)
[openldap] / libraries / liblutil / getpeereid.c
index 2cc0ea1bd76a332d3d7b66134f0f85cc88825793..2642886c27374e0a10b73b88fc6e644e73b073fc 100644 (file)
@@ -19,7 +19,8 @@
 #include <sys/ucred.h>
 #endif
 
-#if !defined(SO_PEERCRED) && !defined(LOCAL_PEERCRED) && defined(HAVE_SENDMSG)
+#if !defined(SO_PEERCRED) && !defined(LOCAL_PEERCRED) && \
+       defined(HAVE_SENDMSG) && defined(HAVE_MSGHDR_MSG_ACCRIGHTS)
 #define DO_SENDMSG
 #ifdef HAVE_SYS_UIO_H
 #include <sys/uio.h>