about summary refs log tree commit diff
path: root/Src/Modules/zftp.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2000-05-28 20:59:15 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2000-05-28 20:59:15 +0000
commitb6cf1f330341afd5551b203123752ac1d2d98ed7 (patch)
tree9b91bcb86d783f3b6aaa2c93e5381e91b5350fc1 /Src/Modules/zftp.c
parent24695d682feac4c07014e14710cc4af2eb66e029 (diff)
downloadzsh-b6cf1f330341afd5551b203123752ac1d2d98ed7.tar.gz
zsh-b6cf1f330341afd5551b203123752ac1d2d98ed7.tar.xz
zsh-b6cf1f330341afd5551b203123752ac1d2d98ed7.zip
11616: netinet/in_systm.h again
Diffstat (limited to 'Src/Modules/zftp.c')
-rw-r--r--Src/Modules/zftp.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/Src/Modules/zftp.c b/Src/Modules/zftp.c
index 33632fcda..b1aac07b8 100644
--- a/Src/Modules/zftp.c
+++ b/Src/Modules/zftp.c
@@ -61,7 +61,16 @@ typedef struct zftp_session *Zftp_session;
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netdb.h>
-#ifdef HAVE_NETINET_IN_SYSTM_H
+/*
+ * For some reason, configure doesn't always detect netinet/in_systm.h.
+ * On some systems, including linux, this seems to be because gcc is
+ * throwing up a warning message about the redefinition of
+ * __USE_LARGEFILE.  This means the problem is somewhere in the
+ * header files where we can't get at it.  For now, revert to
+ * not including this file only on systems where we know it's missing.
+ * Currently this is just cygwin.
+ */
+#ifndef __CYGWIN__
 # include <netinet/in_systm.h>
 #endif
 #include <netinet/in.h>