Guard inclusion of some headers.

This commit is contained in:
Steven Schweda 2012-05-26 14:39:13 +02:00 committed by Giuseppe Scrivano
parent 639a454528
commit 2b1dd8d23b
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2011-05-26 Steven Schweda <sms@antinode.info>
* connect.c [HAVE_SYS_SOCKET_H]: Include <sys/socket.h>.
[HAVE_SYS_SELECT_H]: Include <sys/select.h>.
2012-05-26 Mike Frysinger <vapier@gentoo.org>
* warc.c: Change type of `warc_current_gzfile' to gzFile.

View File

@ -36,8 +36,13 @@ as that of the covered work. */
#include <unistd.h>
#include <assert.h>
#include <sys/socket.h>
#include <sys/select.h>
#ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif /* def HAVE_SYS_SOCKET_H */
#ifdef HAVE_SYS_SELECT_H
# include <sys/select.h>
#endif /* def HAVE_SYS_SELECT_H */
#ifndef WINDOWS
# ifdef __VMS