From 2b1dd8d23b987a82d03cfa803aabcb02f80e1066 Mon Sep 17 00:00:00 2001 From: Steven Schweda Date: Sat, 26 May 2012 14:39:13 +0200 Subject: [PATCH] Guard inclusion of some headers. --- src/ChangeLog | 4 ++++ src/connect.c | 9 +++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index d7a13ac0..7e16b17c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2011-05-26 Steven Schweda + * connect.c [HAVE_SYS_SOCKET_H]: Include . + [HAVE_SYS_SELECT_H]: Include . + 2012-05-26 Mike Frysinger * warc.c: Change type of `warc_current_gzfile' to gzFile. diff --git a/src/connect.c b/src/connect.c index 119ccb71..6eca1ded 100644 --- a/src/connect.c +++ b/src/connect.c @@ -36,8 +36,13 @@ as that of the covered work. */ #include #include -#include -#include +#ifdef HAVE_SYS_SOCKET_H +# include +#endif /* def HAVE_SYS_SOCKET_H */ + +#ifdef HAVE_SYS_SELECT_H +# include +#endif /* def HAVE_SYS_SELECT_H */ #ifndef WINDOWS # ifdef __VMS