]> git.sur5r.net Git - openldap/commitdiff
Add LDAP_PF_LOCAL_SENDMSG flag
authorHoward Chu <hyc@openldap.org>
Sun, 25 Mar 2007 01:06:36 +0000 (01:06 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 25 Mar 2007 01:06:36 +0000 (01:06 +0000)
configure.in
include/portable.hin

index 8fe6c17bb200ea89dfcc3ead347a5cf91362be16..1aa302926c2422ff9b6a92f0ad7ff1f116065b9a 100644 (file)
@@ -144,6 +144,15 @@ AH_BOTTOM([
 #      define WIN32_LEAN_AND_MEAN 1
 #endif
 
+#ifdef LDAP_PF_LOCAL
+#if !defined(HAVE_GETPEEREID) && \
+    !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 LDAP_PF_LOCAL_SENDMSG 1
+#endif
+
 #ifndef LDAP_NEEDS_PROTOTYPES
 /* force LDAP_P to always include prototypes */
 #define LDAP_NEEDS_PROTOTYPES 1
index 6bc081c0f9caeb9b292b767bc7fa3fc451bb37f3..1f4e5b5e939c5e95eebdbb5ae50b5f90c18d00d3 100644 (file)
 #      define WIN32_LEAN_AND_MEAN 1
 #endif
 
+#ifdef LDAP_PF_LOCAL
+#if !defined(HAVE_GETPEEREID) && \
+    !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 LDAP_PF_LOCAL_SENDMSG 1
+#endif
+
 #ifndef LDAP_NEEDS_PROTOTYPES
 /* force LDAP_P to always include prototypes */
 #define LDAP_NEEDS_PROTOTYPES 1