summaryrefslogtreecommitdiffhomepage
path: root/src/os/win32/ngx_win32_config.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/win32/ngx_win32_config.h')
-rw-r--r--src/os/win32/ngx_win32_config.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/os/win32/ngx_win32_config.h b/src/os/win32/ngx_win32_config.h
index 623569855..7face954f 100644
--- a/src/os/win32/ngx_win32_config.h
+++ b/src/os/win32/ngx_win32_config.h
@@ -128,13 +128,27 @@ typedef unsigned short int uint16_t;
typedef __int64 int64_t;
typedef unsigned __int64 uint64_t;
+
+#ifndef __WATCOMC__
typedef int intptr_t;
typedef u_int uintptr_t;
+#endif
+
/* Windows defines off_t as long, which is 32-bit */
typedef __int64 off_t;
#define _OFF_T_DEFINED
+#ifdef __WATCOMC__
+
+/* off_t is redefined by sys/types.h used by zlib.h */
+#define __TYPES_H_INCLUDED
+typedef int dev_t;
+typedef unsigned int ino_t;
+
+#endif
+
+
typedef int ssize_t;
typedef uint32_t in_addr_t;
typedef u_short in_port_t;