From: Debian 389ds Team Date: Wed, 10 May 2017 06:25:03 +0000 (+0100) Subject: fix-bsd X-Git-Tag: archive/raspbian/1.4.0.19-3+rpi1~1^2^2~7 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=429a41b91445f282f8c8491575f256b97f84c540;p=389-ds-base.git fix-bsd Gbp-Pq: Name fix-bsd.patch --- diff --git a/ldap/servers/slapd/back-ldbm/ldbm_entryrdn.c b/ldap/servers/slapd/back-ldbm/ldbm_entryrdn.c index f66ae68..ebd0dda 100644 --- a/ldap/servers/slapd/back-ldbm/ldbm_entryrdn.c +++ b/ldap/servers/slapd/back-ldbm/ldbm_entryrdn.c @@ -66,6 +66,10 @@ typedef struct _rdn_elem { #define TMPID 0 /* Used for the fake ID */ +#ifndef ENODATA /* not defined on BSD systems */ +#define ENODATA ENOMSG +#endif + /* RDN(s) which can be added even if no suffix exists in the entryrdn index */ const char *rdn_exceptions[] = { "nsuniqueid=ffffffff-ffffffff-ffffffff-ffffffff", diff --git a/ldap/systools/idsktune.c b/ldap/systools/idsktune.c index 08b7f12..e56245d 100644 --- a/ldap/systools/idsktune.c +++ b/ldap/systools/idsktune.c @@ -165,6 +165,11 @@ int mem_rec = 1024; #define NAME_TCP_KEEPALIVE_INTERVAL "net.ipv4.tcp_keepalive_time" #endif +#if defined(IDDS_BSD_SYSCTL) +#define NAME_TCP_SMALLEST_ANON_PORT "net.inet.ip.portrange.hifirst" +#define NAME_TCP_KEEPALIVE_INTERVAL "net.inet.tcp.keepintvl" +#endif + #if defined(__sun) || defined(__hpux) || defined(IDDS_LINUX_SYSCTL) long ndd_tcp_conn_req_max_q = 0;