Blame SOURCES/openldap-compat-macros.patch

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