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 1eb530d8dc
commit e1e55e4d04
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