Make header inclusion depend on HAVE_*_H definition

pull/1/head
Yang Tse 15 years ago
parent 52d5de9cc1
commit 91031e8ce4
  1. 2
      ares_free_hostent.c
  2. 2
      ares_private.h

@ -18,7 +18,7 @@
#include "ares_setup.h"
#include <stdlib.h>
#if !defined(WIN32) || defined(WATT32)
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif

@ -30,7 +30,7 @@
#include <stdio.h>
#include <sys/types.h>
#if !defined(WIN32) || defined(WATT32)
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif

Loading…
Cancel
Save