File fix-build-issues.patch of Package evoldap2-client

--- include/ldap_pvt_thread.h	2008-03-21 06:16:03.000000000 +0530
+++ include/ldap_pvt_thread.h	2009-08-10 12:35:39.000000000 +0530
@@ -59,12 +59,12 @@ ldap_pvt_thread_set_concurrency LDAP_P((
 
 #ifndef LDAP_PVT_THREAD_H_DONE
 #define	LDAP_PVT_THREAD_SET_STACK_SIZE
-#ifndef LDAP_PVT_THREAD_STACK_SIZE
+/* The size may be explicitly #defined to zero to disable it. */
+#if defined( LDAP_PVT_THREAD_STACK_SIZE ) && LDAP_PVT_THREAD_STACK_SIZE == 0
+#	undef LDAP_PVT_THREAD_SET_STACK_SIZE
+#elif !defined( 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 *) )
-/* May be explicitly defined to zero to disable it */
-#elif LDAP_PVT_THREAD_STACK_SIZE == 0
-#undef LDAP_PVT_THREAD_SET_STACK_SIZE
+#	define LDAP_PVT_THREAD_STACK_SIZE ( 1 * 1024 * 1024 * sizeof(void *) )
 #endif
 #endif /* !LDAP_PVT_THREAD_H_DONE */
 
--- libraries/libldap/os-ip.c	2008-09-04 02:41:06.000000000 +0530
+++ libraries/libldap/os-ip.c	2009-08-10 12:19:19.000000000 +0530
@@ -769,7 +769,7 @@ ldap_host_connected_to( Sockbuf *sb, con
 		char *herr;
 #ifdef NI_MAXHOST
 		char hbuf[NI_MAXHOST];
-#elif defined( MAXHOSTNAMELEN
+#elif defined( MAXHOSTNAMELEN )
 		char hbuf[MAXHOSTNAMELEN];
 #else
 		char hbuf[256];
openSUSE Build Service is sponsored by