1
Description: Fix build on kFreeBSD (and probably other BSD systems)
2
1) ENODATA is no ISO C standard and is missing on BSD.
3
2) The sysctl for the TCP keepalive interval is net.inet.tcp.keepintvl
5
Author: Benjamin Drung <benjamin.drung@profitbricks.com>
7
--- a/ldap/servers/slapd/back-ldbm/ldbm_entryrdn.c
8
+++ b/ldap/servers/slapd/back-ldbm/ldbm_entryrdn.c
11
#define TMPID 0 /* Used for the fake ID */
13
+#ifndef ENODATA /* not defined on BSD systems */
14
+#define ENODATA ENOMSG
17
/* RDN(s) which can be added even if no suffix exists in the entryrdn index */
18
const char *rdn_exceptions[] = {
19
"nsuniqueid=ffffffff-ffffffff-ffffffff-ffffffff",
20
--- a/ldap/systools/idsktune.c
21
+++ b/ldap/systools/idsktune.c
24
#if defined(IDDS_BSD_SYSCTL)
25
#define NAME_TCP_SMALLEST_ANON_PORT "net.inet.ip.portrange.hifirst"
26
+#define NAME_TCP_KEEPALIVE_INTERVAL "net.inet.tcp.keepintvl"
29
#if defined(__sun) || defined(__hpux) || defined(IDDS_BSD_SYSCTL) || defined(IDDS_LINUX_SYSCTL)