Make sure sys/socket.h is included before netinet/in.h (required by

OpenWatcom C)
pull/1/head
Dan Fandrich 16 years ago
parent 7bd83c2e33
commit b4371466d4
  1. 2
      ares.h
  2. 3
      ares_expand_name.c
  3. 3
      ares_expand_string.c
  4. 3
      ares_mkquery.c
  5. 3
      ares_query.c
  6. 3
      ares_send.c

@ -51,8 +51,8 @@
# include <winsock2.h>
# include <ws2tcpip.h>
#else
#include <netinet/in.h>
#include <sys/socket.h>
#include <netinet/in.h>
#endif
#ifdef __cplusplus

@ -17,6 +17,9 @@
#include "setup.h"
#ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif

@ -17,6 +17,9 @@
#include "setup.h"
#ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif

@ -17,6 +17,9 @@
#include "setup.h"
#ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif

@ -17,6 +17,9 @@
#include "setup.h"
#ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif

@ -17,6 +17,9 @@
#include "setup.h"
#ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif

Loading…
Cancel
Save