diff options
-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 |