From 7f321786160939fcce76e8a847d6284c9c677e41 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sun, 25 Mar 2007 01:06:36 +0000 Subject: [PATCH] Add LDAP_PF_LOCAL_SENDMSG flag --- configure.in | 9 +++++++++ include/portable.hin | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/configure.in b/configure.in index 8fe6c17bb2..1aa302926c 100644 --- a/configure.in +++ b/configure.in @@ -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 diff --git a/include/portable.hin b/include/portable.hin index 6bc081c0f9..1f4e5b5e93 100644 --- a/include/portable.hin +++ b/include/portable.hin @@ -1071,6 +1071,15 @@ # 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 -- 2.39.5