1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-10-06 12:10:03 +00:00

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

<sys/time.h>.
This commit is contained in:
Gisle Vanem
2007-01-30 13:15:07 +00:00
parent 3c90d9d6d3
commit 4a30753b47
2 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

@ -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