mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-29 11:09:34 -05:00
Add LDAP_PF_LOCAL_SENDMSG flag
This commit is contained in:
parent
49d708fae3
commit
7f32178616
2 changed files with 18 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue