]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blame - src/patches/openldap-gcc44-fixes.patch
firewall: Remove redundant rule.
[people/teissler/ipfire-2.x.git] / src / patches / openldap-gcc44-fixes.patch
CommitLineData
b4dbff3f
MT
1--- include/ldap_pvt_thread.h~ 2008-11-12 07:37:16.000000000 +0000
2+++ include/ldap_pvt_thread.h 2008-11-12 08:01:45.000000000 +0000
3@@ -59,12 +59,12 @@
4
5 #ifndef LDAP_PVT_THREAD_H_DONE
6 #define LDAP_PVT_THREAD_SET_STACK_SIZE
7-#ifndef LDAP_PVT_THREAD_STACK_SIZE
8- /* LARGE stack. Will be twice as large on 64 bit machine. */
9-#define LDAP_PVT_THREAD_STACK_SIZE ( 1 * 1024 * 1024 * sizeof(void *) )
10 /* May be explicitly defined to zero to disable it */
11-#elif LDAP_PVT_THREAD_STACK_SIZE == 0
12+#if LDAP_PVT_THREAD_STACK_SIZE == 0
13 #undef LDAP_PVT_THREAD_SET_STACK_SIZE
14+#elif !defined(LDAP_PVT_THREAD_STACK_SIZE)
15+ /* LARGE stack. Will be twice as large on 64 bit machine. */
16+#define LDAP_PVT_THREAD_STACK_SIZE ( 1 * 1024 * 1024 * sizeof(void *) )
17 #endif
18 #endif /* !LDAP_PVT_THREAD_H_DONE */
19
20--- libraries/libldap/os-ip.c~ 2008-11-12 07:33:10.000000000 +0000
21+++ libraries/libldap/os-ip.c 2008-11-12 07:33:31.000000000 +0000
22@@ -690,7 +690,7 @@
23 char *herr;
24 #ifdef NI_MAXHOST
25 char hbuf[NI_MAXHOST];
26-#elif defined( MAXHOSTNAMELEN
27+#elif defined( MAXHOSTNAMELEN )
28 char hbuf[MAXHOSTNAMELEN];
29 #else
30 char hbuf[256];
31