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:
@@ -60,8 +60,13 @@ extern char thing_star[4];
|
|||||||
# include <gtk/gtkmenu.h>
|
# include <gtk/gtkmenu.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_SYS_SOCKET_H
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_NETINET_IN_H
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_ARPA_INET_H
|
#ifdef HAVE_ARPA_INET_H
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
|
|||||||
@@ -37,7 +37,9 @@
|
|||||||
/*
|
/*
|
||||||
* Everybody needs these INET headers...
|
* Everybody needs these INET headers...
|
||||||
*/
|
*/
|
||||||
|
#ifdef HAVE_NETINET_IN_H
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
|
#endif
|
||||||
#ifdef HAVE_ARPA_INET_H
|
#ifdef HAVE_ARPA_INET_H
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -19,7 +19,9 @@
|
|||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "ssl.h"
|
#include "ssl.h"
|
||||||
|
#ifdef HAVE_NETINET_IN_H
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* struct sockaddr_storage isn't avaiable on all ipv6-ready-systems, bleh ;(
|
* struct sockaddr_storage isn't avaiable on all ipv6-ready-systems, bleh ;(
|
||||||
|
|||||||
@@ -21,9 +21,6 @@
|
|||||||
* $Id$
|
* $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <netinet/in.h>
|
|
||||||
|
|
||||||
#include "cdns.h"
|
#include "cdns.h"
|
||||||
#include "irc.h" /* To pick up our next #define checks */
|
#include "irc.h" /* To pick up our next #define checks */
|
||||||
static char cvsrevision[] = "$Id$";
|
static char cvsrevision[] = "$Id$";
|
||||||
|
|||||||
Reference in New Issue
Block a user