Blame SOURCES/openldap-compat-macros.patch

5b6c6a
--- openldap-2.3.43/libraries/libldap/os-ip.c.orig	2010-05-06 13:48:15.000000000 +0200
5b6c6a
+++ openldap-2.3.43/libraries/libldap/os-ip.c	2010-05-06 13:48:23.000000000 +0200
5b6c6a
@@ -652,7 +652,7 @@ ldap_host_connected_to( Sockbuf *sb, con
5b6c6a
 		char *herr;
5b6c6a
 #ifdef NI_MAXHOST
5b6c6a
 		char hbuf[NI_MAXHOST];
5b6c6a
-#elif defined( MAXHOSTNAMELEN
5b6c6a
+#elif defined( MAXHOSTNAMELEN )
5b6c6a
 		char hbuf[MAXHOSTNAMELEN];
5b6c6a
 #else
5b6c6a
 		char hbuf[256];
5b6c6a
--- openldap-2.3.43/include/ldap_pvt_thread.h.orig	2010-05-06 14:35:45.000000000 +0200
5b6c6a
+++ openldap-2.3.43/include/ldap_pvt_thread.h	2010-05-06 14:36:08.000000000 +0200
5b6c6a
@@ -61,9 +61,11 @@ ldap_pvt_thread_set_concurrency LDAP_P((
5b6c6a
 	/* LARGE stack. Will be twice as large on 64 bit machine. */
5b6c6a
 #define LDAP_PVT_THREAD_STACK_SIZE	( 1 * 1024 * 1024 * sizeof(void *) )
5b6c6a
 /* May be explicitly defined to zero to disable it */
5b6c6a
-#elif LDAP_PVT_THREAD_STACK_SIZE == 0
5b6c6a
+#else
5b6c6a
+#if LDAP_PVT_THREAD_STACK_SIZE == 0
5b6c6a
 #undef LDAP_PVT_THREAD_SET_STACK_SIZE
5b6c6a
 #endif
5b6c6a
+#endif
5b6c6a
 #endif /* !LDAP_PVT_THREAD_H_DONE */
5b6c6a
 
5b6c6a
 LDAP_F( int )