Needed for build on SunOS 4.1.x with gcc (Jeffrey Hutzelman <jhutz@cmu.edu>).
authorLutz Jänicke <jaenicke@openssl.org>
Sat, 25 Aug 2001 11:34:53 +0000 (11:34 +0000)
committerLutz Jänicke <jaenicke@openssl.org>
Sat, 25 Aug 2001 11:34:53 +0000 (11:34 +0000)
e_os.h

diff --git a/e_os.h b/e_os.h
index 8a996096be6dd380ae60bb686a33240c5be5d9fc..b512e17166409d8b27b602014b6c3bd96d2f88f5 100644 (file)
--- a/e_os.h
+++ b/e_os.h
@@ -420,6 +420,9 @@ extern HINSTANCE _hInstance;
 #endif
 
 #if defined(sun) && !defined(__svr4__) && !defined(__SVR4)
+  /* include headers first, so our defines don't break it */
+#include <stdlib.h>
+#include <string.h>
   /* bcopy can handle overlapping moves according to SunOS 4.1.4 manpage */
 # define memmove(s1,s2,n) bcopy((s2),(s1),(n))
 # define strtoul(s,e,b) ((unsigned long int)strtol((s),(e),(b)))