Add proper #ifdef's to #include the appropriate system header files
authorTheodore Tso <tytso@mit.edu>
Wed, 1 Mar 1995 23:20:08 +0000 (23:20 +0000)
committerTheodore Tso <tytso@mit.edu>
Wed, 1 Mar 1995 23:20:08 +0000 (23:20 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5045 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/movemail/ChangeLog
src/appl/movemail/movemail.c

index 98214102ed76c4a33844056fed8c8169314f79e0..451ce566135106dc70af4e40587be496cb1156f1 100644 (file)
@@ -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.
 
index 89d6ac2b7ec24c56e8faf51c0ce6cd762bc9b48b..ed8d97acc1118d0ee44b9307f2b44d9769ed9ded 100644 (file)
@@ -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