Support for OpenWatcom (Win32): It do have getpid(), but no

<sys/time.h>.
pull/1/head
Gisle Vanem 18 years ago
parent 3c90d9d6d3
commit 4a30753b47
  1. 2
      nameser.h
  2. 2
      setup.h

@ -30,7 +30,9 @@ struct iovec
size_t iov_len; /* Length of data. */
};
#ifndef __WATCOMC__
#define getpid() _getpid()
#endif
int ares_writev (SOCKET s, const struct iovec *vector, size_t count);
#define writev(s,vect,count) ares_writev(s,vect,count)

@ -133,7 +133,7 @@ typedef int ares_socket_t;
* Assume a few thing unless they're set by configure
*/
#if !defined(HAVE_SYS_TIME_H) && !defined(_MSC_VER)
#if !defined(HAVE_SYS_TIME_H) && !defined(_MSC_VER) && !defined(__WATCOMC__)
#define HAVE_SYS_TIME_H
#endif

Loading…
Cancel
Save