summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/appl/movemail/ChangeLog3
-rw-r--r--src/appl/movemail/movemail.c21
2 files changed, 24 insertions, 0 deletions
diff --git a/src/appl/movemail/ChangeLog b/src/appl/movemail/ChangeLog
index 98214102e..451ce5661 100644
--- a/src/appl/movemail/ChangeLog
+++ b/src/appl/movemail/ChangeLog
@@ -1,5 +1,8 @@
Wed Mar 1 11:56:05 1995 Theodore Y. Ts'o <tytso@dcl>
+ * movemail.c: Add proper #ifdef's to #include the appropriate
+ system header files.
+
* configure.in: Replace check for -lsocket and -lnsl with
WITH_NETLIB check.
diff --git a/src/appl/movemail/movemail.c b/src/appl/movemail/movemail.c
index 89d6ac2b7..ed8d97acc 100644
--- a/src/appl/movemail/movemail.c
+++ b/src/appl/movemail/movemail.c
@@ -83,6 +83,27 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <sys/locking.h>
#endif
+#ifdef HAS_STDLIB_H
+#include <stdlib.h>
+#else
+#ifdef __STDC__
+#ifdef NO_STDLIB_H
+#include <fake-stdlib.h>
+#else
+#include <stdlib.h>
+#endif /* NO_STDLIB_H */
+#else
+extern char *malloc(), *realloc(), *calloc();
+extern char *getenv();
+#endif /* ! __STDC__ */
+#endif /* HAS_STDLIB_H */
+
+#ifdef USE_STRING_H
+#include <string.h>
+#else
+#include <strings.h>
+#endif
+
/* Cancel substitutions made by config.h for Emacs. */
#undef open
#undef read