Skip to content
Snippets Groups Projects
Commit e1e55e4d authored by Gisle Vanem's avatar Gisle Vanem
Browse files

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

<sys/time.h>.
parent 1eb530d8
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment