summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nameser.h2
-rw-r--r--setup.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/nameser.h b/nameser.h
index 1faeb6f..a7587d0 100644
--- a/nameser.h
+++ b/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/setup.h b/setup.h
index a5899d8..465e012 100644
--- a/setup.h
+++ b/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