diff options
-rw-r--r-- | configure.in | 4 | ||||
-rw-r--r-- | daemon.c | 12 | ||||
-rw-r--r-- | driver.c | 2 | ||||
-rw-r--r-- | fetchmail.c | 15 | ||||
-rw-r--r-- | options.c | 2 | ||||
-rw-r--r-- | pop3.c | 2 | ||||
-rw-r--r-- | smtp.c | 3 | ||||
-rw-r--r-- | socket.c | 4 | ||||
-rw-r--r-- | uid.c | 2 | ||||
-rw-r--r-- | xmalloc.c | 1 |
10 files changed, 13 insertions, 34 deletions
diff --git a/configure.in b/configure.in index 2c5f573d..ee435b1d 100644 --- a/configure.in +++ b/configure.in @@ -86,8 +86,8 @@ AC_TRY_COMPILE([], [AC_DEFINE(HAVE_PROTOTYPES) AC_MSG_RESULT(yes)], AC_MSG_RESULT(no)) -dnl Check out the wait reality. -AC_CHECK_HEADERS(sys/wait.h) AC_CHECK_FUNCS(waitpid wait3) +dnl Check out the wait reality. We have to assume sys/wait.h is present. +AC_CHECK_FUNCS(waitpid wait3) AC_MSG_CHECKING(for union wait); AC_TRY_LINK([#include <sys/types.h> #include <sys/wait.h>], @@ -7,18 +7,14 @@ #include <config.h> #include <stdio.h> +#include <signal.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/file.h> -#include <signal.h> -#include <fcntl.h> - -#if defined(HAVE_SYS_WAIT_H) -# include <sys/wait.h> -#endif +#include <sys/wait.h> #if defined(HAVE_UNISTD_H) -# include <unistd.h> +#include <unistd.h> #endif #if defined(STDC_HEADERS) @@ -26,7 +22,7 @@ #endif #if defined(QNX) -# include <unix.h> +#include <unix.h> #endif /* BSD portability hack */ @@ -10,9 +10,9 @@ #include <stdio.h> #include <setjmp.h> #include <ctype.h> +#include <string.h> #if defined(STDC_HEADERS) #include <stdlib.h> -#include <string.h> #endif #if defined(HAVE_UNISTD_H) #include <unistd.h> diff --git a/fetchmail.c b/fetchmail.c index 7d54fd7d..90a82c85 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -5,29 +5,18 @@ */ #include <config.h> -#include <stdio.h> -#include <ctype.h> -#include <time.h> +#include <stdio.h> #if defined(STDC_HEADERS) #include <stdlib.h> -#include <string.h> #endif - #if defined(HAVE_UNISTD_H) #include <unistd.h> #endif - +#include <string.h> #include <signal.h> #include <pwd.h> -#include <errno.h> - -#include <sys/types.h> -#include <sys/file.h> -#include <sys/wait.h> -#include <sys/stat.h> #include <sys/time.h> -#include <fcntl.h> #ifdef HAVE_GETHOSTBYNAME #include <netdb.h> @@ -5,7 +5,7 @@ */ #include <config.h> -#include <stdio.h> + #include <pwd.h> #include <string.h> #if defined(STDC_HEADERS) @@ -5,9 +5,9 @@ */ #include <config.h> + #include <stdio.h> #include <string.h> -#include <ctype.h> #if defined(HAVE_UNISTD_H) #include <unistd.h> #endif @@ -9,9 +9,8 @@ * For license terms, see the file COPYING in this directory. */ -#include <stdio.h> #include <config.h> -#include <sys/types.h> +#include <stdio.h> #include <unistd.h> #include <string.h> #include "socket.h" @@ -7,14 +7,11 @@ #include <config.h> #include <stdio.h> -#include <fcntl.h> #include <sys/types.h> #include <sys/socket.h> -#include <netinet/in.h> #include <arpa/inet.h> #include <netdb.h> #if defined(STDC_HEADERS) -#include <string.h> #include <stdlib.h> #endif #if defined(HAVE_UNISTD_H) @@ -25,7 +22,6 @@ #else #include <varargs.h> #endif -#include <errno.h> #include "socket.h" FILE *Socket(host, clientPort) @@ -7,10 +7,10 @@ #include <config.h> #include <stdio.h> +#include <string.h> #if defined(STDC_HEADERS) #include <stdlib.h> -#include <string.h> #endif #if defined(HAVE_UNISTD_H) @@ -7,7 +7,6 @@ #include <config.h> #include <stdio.h> #include <string.h> -#include <sys/types.h> #if defined(STDC_HEADERS) #include <stdlib.h> #endif |