diff options
Diffstat (limited to 'Src')
-rw-r--r-- | Src/Modules/zftp.c | 11 |
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> |