although the check for HAVE_STRUCT_TIMEVAL solved the redefine it is incorrect; lets see if a check for HAVE_GETTIMEOFDAY also works; if gettimeofday() is present then we can assume we have the timezone struct too.

pull/1/head
Gunter Knauf 18 years ago
parent c58612ba12
commit 76a007538c
  1. 2
      nameser.h

@ -32,7 +32,7 @@ struct iovec
int ares_writev (SOCKET s, const struct iovec *vector, size_t count); int ares_writev (SOCKET s, const struct iovec *vector, size_t count);
#define writev(s,vect,count) ares_writev(s,vect,count) #define writev(s,vect,count) ares_writev(s,vect,count)
#ifndef HAVE_STRUCT_TIMEVAL #ifndef HAVE_GETTIMEOFDAY
struct timezone { int dummy; }; struct timezone { int dummy; };
#endif #endif

Loading…
Cancel
Save