]> git.sur5r.net Git - openldap/commitdiff
Another getpeerucred(3) fix.
authorKurt Zeilenga <kurt@openldap.org>
Wed, 23 Nov 2005 19:41:28 +0000 (19:41 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 23 Nov 2005 19:41:28 +0000 (19:41 +0000)
libraries/liblutil/getpeereid.c

index d75d8f87fd6edb496b9c25961901254dcb0be741..30335ec4d4de21e54f96f0093b29de5a8c6a6dc3 100644 (file)
@@ -35,7 +35,8 @@
 #include <sys/ucred.h>
 #endif
 
-#if !defined(SO_PEERCRED) && !defined(LOCAL_PEERCRED) && \
+#if !defined(HAVE_GETPEERUCRED) && \
+       !defined(SO_PEERCRED) && !defined(LOCAL_PEERCRED) && \
        defined(HAVE_SENDMSG) && (defined(HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN) || \
                defined(HAVE_STRUCT_MSGHDR_MSG_CONTROL))
 #define DO_SENDMSG