Add HAVE_*_H checks around inclusions of netinet/in.h and sys/socket.h

Only include <netinet/in.h> and <sys/socket.h> if the system supplies them.
This is necessary to try and get the mingw32 build working again.

No need to include <sys/types.h> and <netinet/in.h> from cdns.c - these are
already included by <irc.h>.
This commit is contained in:
Kevin Easton
2016-03-17 21:39:17 +11:00
parent f21b89e428
commit 82d606979b
4 changed files with 9 additions and 3 deletions

View File

@@ -60,8 +60,13 @@ extern char thing_star[4];
# include <gtk/gtkmenu.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>