]> git.sesse.net Git - betaftpd/blobdiff - ftpd.h
All header files should now be self-contained (ie. you shouldn't need to do any syste...
[betaftpd] / ftpd.h
diff --git a/ftpd.h b/ftpd.h
index 086df8a50780adc26c5ce6d2a8e0e98fa2abd94b..11bb81a74ecf169e303951254d39de37cb553154 100644 (file)
--- a/ftpd.h
+++ b/ftpd.h
@@ -15,6 +15,9 @@
     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */
 
+#ifndef _FTPD_H
+#define _FTPD_H 1
+
 /*
  * This is the port you want BetaFTPD to listen on. The standard
  * FTP port is 21 -- if you really want to use BetaFTPD as your
  */
 #define MAX_BLOCK_SIZE 4096
 
+#if HAVE_PWD_H
+#include <pwd.h>
+#endif
+
+#if HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+
+#if HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
+
+#if HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+
 #if HAVE_LINUX_SENDFILE && !HAVE_MMAP
 #warning sendfile() without mmap() is not supported -- disabling sendfile()
 #undef HAVE_LINUX_SENDFILE
@@ -206,3 +225,4 @@ void dump_file(struct conn * const c, const int num, const char * const filename
 void list_readmes(struct conn * const c);
 #endif
 
+#endif