diff options
author | Gisle Vanem <gvanem@broadpark.no> | 2007-01-30 13:15:07 +0000 |
---|---|---|
committer | Gisle Vanem <gvanem@broadpark.no> | 2007-01-30 13:15:07 +0000 |
commit | e1e55e4d045baa7d28bab6d020148b45ecc49a9b (patch) | |
tree | be509aee6070f4f5ae740d63217e9c318c66b109 | |
parent | 1eb530d8dce0229da034b46e1e919c7ef7fa78ec (diff) |
Support for OpenWatcom (Win32): It do have getpid(), but no
<sys/time.h>.
-rw-r--r-- | ares/nameser.h | 2 | ||||
-rw-r--r-- | ares/setup.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/ares/nameser.h b/ares/nameser.h index 1faeb6ff8..a7587d002 100644 --- a/ares/nameser.h +++ b/ares/nameser.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) diff --git a/ares/setup.h b/ares/setup.h index a5899d883..465e012fe 100644 --- a/ares/setup.h +++ b/ares/setup.h @@ -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 |