summaryrefslogtreecommitdiffstats
path: root/e_os.h
diff options
context:
space:
mode:
Diffstat (limited to 'e_os.h')
-rw-r--r--e_os.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/e_os.h b/e_os.h
index 803ceae90e..5857b1c86d 100644
--- a/e_os.h
+++ b/e_os.h
@@ -425,6 +425,9 @@ extern HINSTANCE _hInstance;
#endif
#if defined(sun) && !defined(__svr4__) && !defined(__SVR4)
+ /* include headers first, so our evil 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)))