fix-bsd
authorDebian 389ds Team <pkg-fedora-ds-maintainers@lists.alioth.debian.org>
Wed, 10 May 2017 06:25:03 +0000 (07:25 +0100)
committerTimo Aaltonen <tjaalton@debian.org>
Wed, 10 May 2017 06:25:03 +0000 (07:25 +0100)
Gbp-Pq: Name fix-bsd.patch

ldap/servers/slapd/back-ldbm/ldbm_entryrdn.c
ldap/systools/idsktune.c

index f66ae68ae97a27eb9d4a5a95e2202ca91dc30410..ebd0ddae6f2bf3c3813c99a8ac4cf66d29707763 100644 (file)
@@ -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",
index 08b7f124c64f5c676e4376c3d69d75796f4c5a7e..e56245d48773bfc7da10612278df2d4384398734 100644 (file)
@@ -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;