[Forgotten commits?]
authorRichard Levitte <levitte@openssl.org>
Mon, 2 Jul 2001 20:41:05 +0000 (20:41 +0000)
committerRichard Levitte <levitte@openssl.org>
Mon, 2 Jul 2001 20:41:05 +0000 (20:41 +0000)
Changes to have OpenSSL compile on OS/2.
Contributed by "Brian Havard" <brianh@kheldar.apana.org.au>

crypto/rand/Makefile.ssl
e_os.h

index d5369c4964824781c9bb981f0363efa5fa7959dc..0f760c1ff8c33d6f7dcf74ff54b157e8d85a5aaa 100644 (file)
@@ -24,9 +24,9 @@ APPS=
 
 LIB=$(TOP)/libcrypto.a
 LIBSRC=md_rand.c randfile.c rand_lib.c rand_err.c rand_egd.c \
-       rand_win.c rand_unix.c
+       rand_win.c rand_unix.c rand_os2.c
 LIBOBJ=md_rand.o randfile.o rand_lib.o rand_err.o rand_egd.o \
-       rand_win.o rand_unix.o
+       rand_win.o rand_unix.o rand_os2.o
 
 SRC= $(LIBSRC)
 
diff --git a/e_os.h b/e_os.h
index 08410f9eb40104db5f0ca323e7c60020c0f1766c..803ceae90e57067ed8fccd2c52ec38e0bdf8678c 100644 (file)
--- a/e_os.h
+++ b/e_os.h
@@ -456,6 +456,13 @@ extern char *sys_errlist[]; extern int sys_nerr;
 #define IRIX_CC_BUG    /* CDS++ up to V2.0Bsomething suffered from the same bug.*/
 #endif
 
+#if defined(OPENSSL_SYS_OS2) && defined(__EMX__)
+# include <io.h>
+# include <fcntl.h>
+# define NO_SYSLOG
+# define strcasecmp stricmp
+#endif
+
 #ifdef  __cplusplus
 }
 #endif