Support for OpenWatcom (Win32): It do have getpid(), but no
<sys/time.h>.
This commit is contained in:
Родитель
1eb530d8dc
Коммит
e1e55e4d04
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче