changeset 1992:4bfcad4986ff

OS/2: Fix compilation error with Watcom C on OS/2. timespec gets redefined when including sys/time.h
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 17 Sep 2019 21:49:36 +0000
parents d83a86f5fe7f
children e643d280edae
files dwcompat.h
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dwcompat.h	Mon Sep 16 19:12:39 2019 +0000
+++ b/dwcompat.h	Tue Sep 17 21:49:36 2019 +0000
@@ -263,7 +263,9 @@
 #include <fcntl.h>
 
 #if !defined(__WIN32__) && !defined(WINNT)
+#ifndef __WATCOMC__
 #include <sys/time.h>
+#endif
 #include <sys/socket.h>
 #include <sys/un.h>
 #include <netinet/in.h>