aboutsummaryrefslogtreecommitdiffstats
path: root/win32/patches/openldap.patch
blob: 3f737f014cf2369a0d751ddfe72400092f76873f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
diff -upr openldap-2.4.9.old/Makefile openldap-2.4.9/Makefile
--- openldap-2.4.9.old/Makefile 2014-03-26 05:17:05 +0000
+++ openldap-2.4.9/Makefile 2014-03-26 21:20:23 +0000
@@ -264,7 +264,7 @@ FORCE:
 ## top-level directory of the distribution or, alternatively, at
 ## <http://www.OpenLDAP.org/license.html>.
 
-SUBDIRS= include libraries clients servers tests doc
+SUBDIRS= include libraries clients servers
 CLEANDIRS=
 INSTALLDIRS= 
 
diff -upr openldap-2.4.9.old/Makefile.in openldap-2.4.9/Makefile.in
--- openldap-2.4.9.old/Makefile.in  2014-03-26 05:17:05 +0000
+++ openldap-2.4.9/Makefile.in  2014-03-26 21:20:00 +0000
@@ -13,7 +13,7 @@
 ## top-level directory of the distribution or, alternatively, at
 ## <http://www.OpenLDAP.org/license.html>.
 
-SUBDIRS= include libraries clients servers tests doc
+SUBDIRS= include libraries clients servers
 CLEANDIRS=
 INSTALLDIRS= 
 
diff -upr openldap-2.4.9.old/include/ldap_pvt_thread.h openldap-2.4.9/include/ldap_pvt_thread.h
--- openldap-2.4.9.old/include/ldap_pvt_thread.h    2014-03-26 05:17:20 +0000
+++ openldap-2.4.9/include/ldap_pvt_thread.h    2014-03-26 21:19:42 +0000
@@ -61,7 +61,7 @@ ldap_pvt_thread_set_concurrency LDAP_P((
 #define    LDAP_PVT_THREAD_SET_STACK_SIZE
 #ifndef LDAP_PVT_THREAD_STACK_SIZE
    /* LARGE stack. Will be twice as large on 64 bit machine. */
-#define LDAP_PVT_THREAD_STACK_SIZE ( 1 * 1024 * 1024 * sizeof(void *) )
+#define LDAP_PVT_THREAD_STACK_SIZE ( 1 * 1024 * 1024 * 4 )
 /* May be explicitly defined to zero to disable it */
 #elif LDAP_PVT_THREAD_STACK_SIZE == 0
 #undef LDAP_PVT_THREAD_SET_STACK_SIZE
diff -upr openldap-2.4.9.old/include/portable.h openldap-2.4.9/include/portable.h
--- openldap-2.4.9.old/include/portable.h   2014-03-26 05:17:20 +0000
+++ openldap-2.4.9/include/portable.h   2014-03-26 21:19:42 +0000
@@ -1086,7 +1086,7 @@
 #define snprintf _snprintf
 
 /* Define like ber_socklen_t if <sys/socket.h> does not define. */
-#define socklen_t int
+/*#define socklen_t int*/
 
 /* Define to `signed int' if <sys/types.h> does not define. */
 /* #undef ssize_t */
diff -upr openldap-2.4.9.old/libraries/libldap_r/Makefile openldap-2.4.9/libraries/libldap_r/Makefile
--- openldap-2.4.9.old/libraries/libldap_r/Makefile 2014-03-26 05:17:20 +0000
+++ openldap-2.4.9/libraries/libldap_r/Makefile 2014-03-26 21:19:42 +0000
@@ -304,10 +304,10 @@ LIB_DEFS = -DLDAP_LIBRARY
 
 XDEFS = -DLDAP_R_COMPILE -I$(XXDIR)
 XLIBS = $(LIBRARY) $(LDAP_LIBLBER_LA) $(LDAP_LIBLUTIL_A)
-XXLIBS = $(SECURITY_LIBS) $(LUTIL_LIBS)
+XXLIBS = $(SECURITY_LIBS) $(LUTIL_LIBS) -lgcrypt
 XXXLIBS = $(LTHREAD_LIBS)
-NT_LINK_LIBS = $(LDAP_LIBLBER_LA) $(AC_LIBS) $(SECURITY_LIBS)
-UNIX_LINK_LIBS = $(LDAP_LIBLBER_LA) $(AC_LIBS) $(SECURITY_LIBS) $(LTHREAD_LIBS)
+NT_LINK_LIBS = $(LDAP_LIBLBER_LA) $(AC_LIBS) $(SECURITY_LIBS) -lgcrypt
+UNIX_LINK_LIBS = $(LDAP_LIBLBER_LA) $(AC_LIBS) $(SECURITY_LIBS) $(LTHREAD_LIBS) -lgcrypt
 
 .links : Makefile
    @for i in $(XXSRCS); do \
diff -upr openldap-2.4.9.old/libraries/libldap_r/Makefile.in openldap-2.4.9/libraries/libldap_r/Makefile.in
--- openldap-2.4.9.old/libraries/libldap_r/Makefile.in  2014-03-26 05:17:20 +0000
+++ openldap-2.4.9/libraries/libldap_r/Makefile.in  2014-03-26 21:19:42 +0000
@@ -53,10 +53,10 @@ LIB_DEFS = -DLDAP_LIBRARY
 
 XDEFS = -DLDAP_R_COMPILE -I$(XXDIR)
 XLIBS = $(LIBRARY) $(LDAP_LIBLBER_LA) $(LDAP_LIBLUTIL_A)
-XXLIBS = $(SECURITY_LIBS) $(LUTIL_LIBS)
+XXLIBS = $(SECURITY_LIBS) $(LUTIL_LIBS) -lgcrypt
 XXXLIBS = $(LTHREAD_LIBS)
-NT_LINK_LIBS = $(LDAP_LIBLBER_LA) $(AC_LIBS) $(SECURITY_LIBS)
-UNIX_LINK_LIBS = $(LDAP_LIBLBER_LA) $(AC_LIBS) $(SECURITY_LIBS) $(LTHREAD_LIBS)
+NT_LINK_LIBS = $(LDAP_LIBLBER_LA) $(AC_LIBS) $(SECURITY_LIBS) -lgcrypt
+UNIX_LINK_LIBS = $(LDAP_LIBLBER_LA) $(AC_LIBS) $(SECURITY_LIBS) $(LTHREAD_LIBS) -lgcrypt
 
 .links : Makefile
    @for i in $(XXSRCS); do \