From: Gisle Vanem Date: Tue, 30 Jan 2007 13:15:07 +0000 (+0000) Subject: Support for OpenWatcom (Win32): It do have getpid(), but no X-Git-Tag: curl-7_16_2~396 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e1e55e4d045baa7d28bab6d020148b45ecc49a9b;p=thirdparty%2Fcurl.git Support for OpenWatcom (Win32): It do have getpid(), but no . --- diff --git a/ares/nameser.h b/ares/nameser.h index 1faeb6ff8f..a7587d0021 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 a5899d883c..465e012fe0 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