summaryrefslogtreecommitdiff
path: root/ftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'ftp.c')
-rw-r--r--ftp.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/ftp.c b/ftp.c
index 233c261db..06cead55e 100644
--- a/ftp.c
+++ b/ftp.c
@@ -1,12 +1,20 @@
-#ifdef HAVE_MACHINE_TYPES_H
+#if HAVE_CONFIG_H
+# include "config.h"
+#else
+#define HAVE_MACHINE_TYPES_H 1
+#define HAVE_ALLOCA_H 1
+#define HAVE_NETINET_IN_SYSTM_H 1
+#endif
+
+#if HAVE_MACHINE_TYPES_H
# include <machine/types.h>
#endif
-#ifdef HAVE_ALLOCA_H
+#if HAVE_ALLOCA_H
# include <alloca.h>
#endif
-#ifdef HAVE_NETINET_IN_SYSTM_H
+#if HAVE_NETINET_IN_SYSTM_H
# include <sys/types.h>
# include <netinet/in_systm.h>
#endif