add more #ifdef before #include-ing

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@805 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1996-09-29 23:40:23 +00:00
parent c09b123995
commit f27321a1d6
8 changed files with 102 additions and 0 deletions

View File

@@ -65,18 +65,30 @@
#include <config.h> #include <config.h>
#endif #endif
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h> #include <sys/param.h>
#endif
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h> #include <sys/stat.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h> #include <sys/types.h>
#endif
#include <ctype.h> #include <ctype.h>
#ifdef HAVE_DIRENT_H
#include <dirent.h> #include <dirent.h>
#endif
#include <errno.h> #include <errno.h>
#ifdef HAVE_PWD_H
#include <pwd.h> #include <pwd.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
#endif
#include "glob.h" #include "glob.h"
#include "roken.h" #include "roken.h"

View File

@@ -39,7 +39,9 @@
#include <setjmp.h> #include <setjmp.h>
#include <stdlib.h> #include <stdlib.h>
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h> #include <sys/time.h>
#endif
#ifdef HAVE_SYS_SELECT_H #ifdef HAVE_SYS_SELECT_H
#include <sys/select.h> #include <sys/select.h>
#endif #endif

View File

@@ -10,37 +10,67 @@
#include <sys/bitypes.h> #include <sys/bitypes.h>
#include <sys/cdefs.h> #include <sys/cdefs.h>
#ifdef HAVE_PWD_H
#include <pwd.h> #include <pwd.h>
#endif
#include <signal.h> #include <signal.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdarg.h> #include <stdarg.h>
#include <string.h> #include <string.h>
#include <time.h> #include <time.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
#endif
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h> #include <sys/param.h>
#endif
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h> #include <sys/time.h>
#endif
#ifdef HAVE_SYS_RESOURCE_H #ifdef HAVE_SYS_RESOURCE_H
#include <sys/resource.h> #include <sys/resource.h>
#endif #endif
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h> #include <sys/wait.h>
#endif
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h> #include <sys/stat.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h> #include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h> #include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h> #include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN_SYSTM_H
#include <netinet/in_systm.h> #include <netinet/in_systm.h>
#endif
#ifdef HAVE_NETINET_IP_H
#include <netinet/ip.h> #include <netinet/ip.h>
#endif
#ifdef HAVE_ARPA_FTP_H
#include <arpa/ftp.h> #include <arpa/ftp.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h> #include <arpa/inet.h>
#endif
#ifdef HAVE_ARPA_TELNET_H
#include <arpa/telnet.h> #include <arpa/telnet.h>
#endif
#include <errno.h> #include <errno.h>
#include <ctype.h> #include <ctype.h>
#include <glob.h> #include <glob.h>
#ifdef HAVE_NETDB_H
#include <netdb.h> #include <netdb.h>
#endif
#ifdef HAVE_SYS_MMAN_H #ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h> #include <sys/mman.h>

View File

@@ -39,7 +39,9 @@
* FTP global variables. * FTP global variables.
*/ */
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h> #include <sys/param.h>
#endif
#include <setjmp.h> #include <setjmp.h>
/* /*

View File

@@ -3,8 +3,12 @@
RCSID("$Id$"); RCSID("$Id$");
#endif #endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h> #include <sys/types.h>
#endif
#ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h> #include <sys/ioctl.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View File

@@ -38,13 +38,19 @@
#ifndef _EXTERN_H_ #ifndef _EXTERN_H_
#define _EXTERN_H_ #define _EXTERN_H_
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h> #include <netinet/in.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h> #include <netdb.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <stdarg.h> #include <stdarg.h>
#include <setjmp.h> #include <setjmp.h>
#ifdef HAVE_PWD_H
#include <pwd.h> #include <pwd.h>
#endif
void blkfree(char **); void blkfree(char **);
char **copyblk(char **); char **copyblk(char **);

View File

@@ -41,19 +41,37 @@ RCSID("$Id$");
/* /*
* FTP server. * FTP server.
*/ */
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h> #include <sys/param.h>
#endif
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h> #include <sys/stat.h>
#endif
#ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h> #include <sys/ioctl.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h> #include <sys/socket.h>
#endif
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h> #include <sys/time.h>
#endif
#ifdef HAVE_SYS_RESOURCE_H #ifdef HAVE_SYS_RESOURCE_H
#include <sys/resource.h> #include <sys/resource.h>
#endif #endif
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h> #include <sys/wait.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h> #include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN_SYSTM_H
#include <netinet/in_systm.h> #include <netinet/in_systm.h>
#endif
#ifdef HAVE_NETINET_IP_H
#include <netinet/ip.h> #include <netinet/ip.h>
#endif
#ifdef HAVE_SYS_MMAN_H #ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h> #include <sys/mman.h>
@@ -61,25 +79,41 @@ RCSID("$Id$");
#define FTP_NAMES #define FTP_NAMES
#include <arpa/ftp.h> #include <arpa/ftp.h>
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h> #include <arpa/inet.h>
#endif
#ifdef HAVE_ARPA_TELNET_H
#include <arpa/telnet.h> #include <arpa/telnet.h>
#endif
#include <ctype.h> #include <ctype.h>
#ifdef HAVE_DIRENT_H
#include <dirent.h> #include <dirent.h>
#endif
#include <errno.h> #include <errno.h>
#ifdef HAVE_FCNTL_H
#include <fcntl.h> #include <fcntl.h>
#endif
#include <glob.h> #include <glob.h>
#include <limits.h> #include <limits.h>
#ifdef HAVE_PWD_H
#include <pwd.h> #include <pwd.h>
#endif
#include <setjmp.h> #include <setjmp.h>
#include <signal.h> #include <signal.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#ifdef HAVE_SYSLOG_H
#include <syslog.h> #include <syslog.h>
#endif
#include <time.h> #include <time.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
#endif
#ifdef HAVE_GRP_H
#include <grp.h> #include <grp.h>
#endif
#include <stdarg.h> #include <stdarg.h>

View File

@@ -65,18 +65,30 @@
#include <config.h> #include <config.h>
#endif #endif
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h> #include <sys/param.h>
#endif
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h> #include <sys/stat.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h> #include <sys/types.h>
#endif
#include <ctype.h> #include <ctype.h>
#ifdef HAVE_DIRENT_H
#include <dirent.h> #include <dirent.h>
#endif
#include <errno.h> #include <errno.h>
#ifdef HAVE_PWD_H
#include <pwd.h> #include <pwd.h>
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
#endif
#include "glob.h" #include "glob.h"
#include "roken.h" #include "roken.h"