~ubuntu-branches/ubuntu/vivid/389-ds-base/vivid

« back to all changes in this revision

Viewing changes to debian/patches/fix-bsd.patch

  • Committer: Package Import Robot
  • Author(s): Benjamin Drung
  • Date: 2014-09-03 15:32:22 UTC
  • Revision ID: package-import@ubuntu.com-20140903153222-f5t5kovnj3wr4s38
Tags: 1.3.2.23-2
* Team upload.
* Add fix-bsd.patch and support-kfreebsd.patch to fix the build failure
  on kFreeBSD.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
4
    on BSD.
 
5
Author: Benjamin Drung <benjamin.drung@profitbricks.com>
 
6
 
 
7
--- a/ldap/servers/slapd/back-ldbm/ldbm_entryrdn.c
 
8
+++ b/ldap/servers/slapd/back-ldbm/ldbm_entryrdn.c
 
9
@@ -95,6 +95,10 @@
 
10
 
 
11
 #define TMPID 0 /* Used for the fake ID */
 
12
 
 
13
+#ifndef ENODATA                    /* not defined on BSD systems */
 
14
+#define ENODATA ENOMSG
 
15
+#endif
 
16
+
 
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
 
22
@@ -256,6 +256,7 @@
 
23
 
 
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"
 
27
 #endif
 
28
 
 
29
 #if defined(__sun) || defined(__hpux) || defined(IDDS_BSD_SYSCTL) || defined(IDDS_LINUX_SYSCTL)