#include <stdio.h>
#include <ctype.h>
#include <errno.h>
+#include <stddef.h>
#if defined(NeXT)
#include <unistd.h>
#endif /* __DJGPP__ */
-
-#ifdef SET_UID
-
-#ifdef USG
-# include <string.h>
-#else
-# include <strings.h>
-# ifndef strstr
-extern char *strstr();
-# endif
-# ifndef strchr
-extern char *strchr();
-# endif
-# ifndef strrchr
-extern char *strrchr();
-# endif
-#endif
-
-#else /* SET_UID */
-
-# include <string.h>
-
-#endif /* SET_UID */
-
-
-#if !defined(linux) && !defined(__MWERKS__) && !defined(ACORN) && !defined(WIN32)
-extern long atol();
-#endif
-
+#include <string.h>
#include <stdarg.h>