changeset 21390:5ade0c90128e

Move cancelations up. Include <stdlib.h> if available.
author Andreas Schwab <schwab@suse.de>
date Mon, 06 Apr 1998 10:17:33 +0000
parents 48690fd8d40a
children fb4644a9f761
files lib-src/movemail.c
diffstat 1 files changed, 10 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/movemail.c	Mon Apr 06 10:15:16 1998 +0000
+++ b/lib-src/movemail.c	Mon Apr 06 10:17:33 1998 +0000
@@ -91,6 +91,12 @@
 #define DISABLE_DIRECT_ACCESS
 #endif /* WINDOWSNT */
 
+/* Cancel substitutions made by config.h for Emacs.  */
+#undef open
+#undef read
+#undef write
+#undef close
+
 #ifdef USG
 #include <fcntl.h>
 #include <unistd.h>
@@ -106,6 +112,10 @@
 #include <unistd.h>
 #endif
 
+#ifdef STDC_HEADERS
+#include <stdlib.h>
+#endif
+
 #if defined (XENIX) || defined (WINDOWSNT)
 #include <sys/locking.h>
 #endif
@@ -133,12 +143,6 @@
 #endif
 #endif
 
-/* Cancel substitutions made by config.h for Emacs.  */
-#undef open
-#undef read
-#undef write
-#undef close
-
 #ifndef errno
 extern int errno;
 #endif