File novell-ldapext.patch of Package novell-ldapext

--- novell/ssl/src/prng.c.xx	2005-06-10 15:17:16.000000000 +0200
+++ novell/ssl/src/prng.c	2005-06-10 15:19:23.000000000 +0200
@@ -50,6 +50,8 @@
 #include "openssl/sha.h"
 #include <sys/time.h>
 #include <unistd.h>
+#include <stdlib.h>
+#include <string.h>
 #include <math.h>
 
 
@@ -308,7 +310,7 @@
 	}
 	bit_op = bit_op >> 1;
     }
-    if (found = 1)
+    if (found == 1)
 	num_b = i/8 + 1;
     else
 	num_b = 0;
@@ -378,7 +380,7 @@
 	}
 	bit_op = bit_op >> 1;
     }
-    if (found = 1)
+    if (found == 1)
 	num_b = i/8 + 1;
     else
 	num_b = 0;
@@ -471,7 +473,7 @@
 	    }
 	    bit_op = bit_op >> 1;
 	}
-	if (found = 1)
+	if (found == 1)
 	    bits = i;
 	else
 	    bits = 0;
--- novell/ssl/src/Makefile.xx	2005-06-10 15:18:25.000000000 +0200
+++ novell/ssl/src/Makefile	2005-06-10 15:18:31.000000000 +0200
@@ -13,7 +13,7 @@
 
 SYSLIBS = -lpthread -lssl -lldap
 
-DEFINES = -DUNIX -DHAVE_ERRNO_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_SOCKET_H -DHAVE_INET_ATON-DOPENSSL_NO_KRB5 -DOPENSSL_SSL -DHAVE_STRING_H -I ./../include/ 
+DEFINES = -DUNIX -DHAVE_ERRNO_H -DHAVE_SYS_IOCTL_H -DHAVE_SYS_SOCKET_H -DHAVE_INET_ATON -DOPENSSL_NO_KRB5 -DOPENSSL_SSL -DHAVE_STRING_H -I ./../include/ 
 
 #source files
 SRCS = ssl_init.c ssl_cert.c ssl_io.c globals.c pkcs12x.c prng.c 
--- novell/ssl/src/ssl_io.c.xx	2005-06-10 15:18:42.000000000 +0200
+++ novell/ssl/src/ssl_io.c	2005-06-10 15:18:53.000000000 +0200
@@ -43,6 +43,7 @@
 
 #include <stdio.h>
 #include <assert.h>
+#include <unistd.h>
 
 #include <ac/errno.h>
 
--- novell/extensions/src/lburp.c.xx	2005-06-10 15:19:49.000000000 +0200
+++ novell/extensions/src/lburp.c	2005-06-10 15:19:55.000000000 +0200
@@ -33,6 +33,7 @@
  ******************************************************************************
  */
 
+#include <assert.h>
 #include <stdio.h>
 #include <stdlib.h>
                                                                                                   
--- novell/extensions/src/lcpart.c.xx	2005-06-10 15:20:03.000000000 +0200
+++ novell/extensions/src/lcpart.c	2005-06-10 15:20:24.000000000 +0200
@@ -35,11 +35,8 @@
 
 #if defined(WIN32)
 #include<windows.h>
-#elif defined(N_PLAT_NLM)
+#else
 #include <stdlib.h>
-#elif defined(MODESTO)
-#include <stdlib.h>
-#elif defined(UNIX)
 #endif
 
 #include <stdio.h>
openSUSE Build Service is sponsored by