summaryrefslogtreecommitdiff
path: root/lib-src/movemail.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>1998-04-06 10:17:33 +0000
committerAndreas Schwab <schwab@suse.de>1998-04-06 10:17:33 +0000
commit2e0a5ae090ce3951448a8e883dd88c8af9a1247e (patch)
treedf4852c62bc1d98c428fe6d65dcdcc80b9e1d5e2 /lib-src/movemail.c
parentcb58ebb0cb727984444434c92cd3bd99e8f6bc04 (diff)
downloademacs-2e0a5ae090ce3951448a8e883dd88c8af9a1247e.tar.gz
Move cancelations up. Include <stdlib.h> if
available.
Diffstat (limited to 'lib-src/movemail.c')
-rw-r--r--lib-src/movemail.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/lib-src/movemail.c b/lib-src/movemail.c
index 8d23fc7b8fd..7e29ab4150f 100644
--- a/lib-src/movemail.c
+++ b/lib-src/movemail.c
@@ -91,6 +91,12 @@ Boston, MA 02111-1307, USA. */
#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 @@ Boston, MA 02111-1307, USA. */
#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 @@ static char *mail_spool_name ();
#endif
#endif
-/* Cancel substitutions made by config.h for Emacs. */
-#undef open
-#undef read
-#undef write
-#undef close
-
#ifndef errno
extern int errno;
#endif