int flags,
slap_ssf_t ssf,
struct berval *authid
-#ifdef LDAP_PF_LOCAL_SENDMSG
- , struct berval *peerbv
-#endif
-)
+ LDAP_PF_LOCAL_SENDMSG_ARG(struct berval *peerbv))
{
unsigned long id;
Connection *c;
c = connection_init( s, (Listener *)&dummy_list, "", "",
CONN_IS_CLIENT, 0, NULL
-#ifdef LDAP_PF_LOCAL_SENDMSG
- , NULL
-#endif
- );
+ LDAP_PF_LOCAL_SENDMSG_ARG(NULL));
if ( !c ) return -1;
c->c_clientfunc = func;
dnsname != NULL ? dnsname : SLAP_STRING_UNKNOWN,
peername, cflag, ssf,
authid.bv_val ? &authid : NULL
-#ifdef LDAP_PF_LOCAL_SENDMSG
- , &peerbv
-#endif
- );
+ LDAP_PF_LOCAL_SENDMSG_ARG(&peerbv));
if( authid.bv_val ) ch_free(authid.bv_val);
c = connection_init( lr->sl_sd, lr, "", "",
CONN_IS_UDP, (slap_ssf_t) 0, NULL
-#ifdef LDAP_PF_LOCAL_SENDMSG
- , NULL
-#endif
- );
+ LDAP_PF_LOCAL_SENDMSG_ARG(NULL));
if ( !c ) {
Debug( LDAP_DEBUG_TRACE,
LDAP_SLAPD_F (void) connection_client_enable LDAP_P(( ber_socket_t s ));
LDAP_SLAPD_F (void) connection_client_stop LDAP_P(( ber_socket_t s ));
+#ifdef LDAP_PF_LOCAL_SENDMSG
+#define LDAP_PF_LOCAL_SENDMSG_ARG(arg) , arg
+#else
+#define LDAP_PF_LOCAL_SENDMSG_ARG(arg)
+#endif
LDAP_SLAPD_F (Connection *) connection_init LDAP_P((
ber_socket_t s,
int use_tls,
slap_ssf_t ssf,
struct berval *id
-#ifdef LDAP_PF_LOCAL_SENDMSG
- , struct berval *peerbv
-#endif
- ));
+ LDAP_PF_LOCAL_SENDMSG_ARG(struct berval *peerbv)));
LDAP_SLAPD_F (void) connection_closing LDAP_P((
Connection *c, const char *why ));