From e782726047aa73c6dc592981d75ea21e1adf3d3d Mon Sep 17 00:00:00 2001 From: sgunderson Date: Fri, 9 Mar 2001 19:16:18 +0000 Subject: [PATCH] Added some system header files and changed the order (\!) of others -- this makes BetaFTPD compile and run quite nicely on FreeBSD (tested on 4.3-BETA). --- cmds.c | 4 ++++ ftpd.c | 32 ++++++++++++++++++++------------ 2 files changed, 24 insertions(+), 12 deletions(-) diff --git a/cmds.c b/cmds.c index 255b293..c17fef9 100644 --- a/cmds.c +++ b/cmds.c @@ -25,6 +25,10 @@ #include #endif +#if HAVE_SYS_TYPES_H +#include +#endif + #if HAVE_SYS_CONF_H #include #endif diff --git a/ftpd.c b/ftpd.c index d7f4606..5208bf7 100644 --- a/ftpd.c +++ b/ftpd.c @@ -36,6 +36,10 @@ #include #endif +#if HAVE_SYS_TYPES_H +#include +#endif + #if HAVE_SYS_CONF_H #include #endif @@ -72,22 +76,14 @@ #include #endif -#if HAVE_ARPA_INET_H -#include -#endif - -#if HAVE_SYS_STAT_H -#include -#endif - -#if HAVE_SYS_IOCTL_H -#include -#endif - #if HAVE_NETINET_IN_SYSTM_H #include #endif +#if HAVE_NETINET_IN_H +#include +#endif + #if HAVE_NETINET_IP_H #include #endif @@ -96,6 +92,18 @@ #include #endif +#if HAVE_ARPA_INET_H +#include +#endif + +#if HAVE_SYS_STAT_H +#include +#endif + +#if HAVE_SYS_IOCTL_H +#include +#endif + #if HAVE_LINUX_SOCKET_H #include #endif -- 2.39.2