aboutsummaryrefslogtreecommitdiff
path: root/src/os/win32
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/win32')
-rw-r--r--src/os/win32/ngx_os.h12
-rw-r--r--src/os/win32/ngx_time.h2
-rw-r--r--src/os/win32/ngx_win32_config.h32
3 files changed, 14 insertions, 32 deletions
diff --git a/src/os/win32/ngx_os.h b/src/os/win32/ngx_os.h
index c27f8a80a..6d720fa58 100644
--- a/src/os/win32/ngx_os.h
+++ b/src/os/win32/ngx_os.h
@@ -15,18 +15,6 @@
#define NGX_IO_SENDFILE 1
#define NGX_IO_ZEROCOPY 2
-#if (HAVE_SENDFILE)
-#define NGX_HAVE_SENDFILE NGX_IO_SENDFILE
-#else
-#define NGX_HAVE_SENDFILE 0
-#endif
-
-#if (HAVE_ZEROCOPY)
-#define NGX_HAVE_ZEROCOPY NGX_IO_ZEROCOPY
-#else
-#define NGX_HAVE_ZEROCOPY 0
-#endif
-
typedef ssize_t (*ngx_recv_pt)(ngx_connection_t *c, u_char *buf, size_t size);
typedef ssize_t (*ngx_recv_chain_pt)(ngx_connection_t *c, ngx_chain_t *in);
diff --git a/src/os/win32/ngx_time.h b/src/os/win32/ngx_time.h
index 665976d88..4cb984194 100644
--- a/src/os/win32/ngx_time.h
+++ b/src/os/win32/ngx_time.h
@@ -39,7 +39,7 @@ typedef FILETIME ngx_mtime_t;
#define ngx_msleep Sleep
-#define HAVE_GETTIMEZONE 1
+#define NGX_HAVE_GETTIMEZONE 1
ngx_int_t ngx_gettimezone(void);
void ngx_gettimeofday(struct timeval *tp);
diff --git a/src/os/win32/ngx_win32_config.h b/src/os/win32/ngx_win32_config.h
index e7d3086e8..c7703c29e 100644
--- a/src/os/win32/ngx_win32_config.h
+++ b/src/os/win32/ngx_win32_config.h
@@ -115,37 +115,31 @@ typedef uint32_t ngx_atomic_t;
#define TIME_T_LEN sizeof("-2147483648") - 1
+#define OFF_T_MAX_VALUE 9223372036854775807
+#define NGX_HAVE_LITTLE_ENDIAN 1
-
-#define NGX_WIN_NT 200000
+#define NGX_THREADS 1
-#define NGX_THREADS 1
+#define NGX_WIN_NT 200000
-#ifndef HAVE_INHERITED_NONBLOCK
-#define HAVE_INHERITED_NONBLOCK 1
+#ifndef NGX_HAVE_INHERITED_NONBLOCK
+#define NGX_HAVE_INHERITED_NONBLOCK 1
#endif
-#ifndef HAVE_WIN32_TRANSMITPACKETS
-#define HAVE_WIN32_TRANSMITPACKETS 1
-#define HAVE_WIN32_TRANSMITFILE 0
+#ifndef NGX_HAVE_WIN32_TRANSMITPACKETS
+#define NGX_HAVE_WIN32_TRANSMITPACKETS 1
+#define NGX_HAVE_WIN32_TRANSMITFILE 0
#endif
-#ifndef HAVE_WIN32_TRANSMITFILE
-#define HAVE_WIN32_TRANSMITFILE 1
+#ifndef NGX_HAVE_WIN32_TRANSMITFILE
+#define NGX_HAVE_WIN32_TRANSMITFILE 1
#endif
-#if (HAVE_WIN32_TRANSMITPACKETS) || (HAVE_WIN32_TRANSMITFILE)
-#define HAVE_SENDFILE 1
+#if (NGX_HAVE_WIN32_TRANSMITPACKETS) || (NGX_HAVE_WIN32_TRANSMITFILE)
+#define NGX_HAVE_SENDFILE 1
#endif
-#define OFF_T_MAX_VALUE 9223372036854775807
-
-
-/* STUB */
-#define HAVE_LITTLE_ENDIAN 1
-
-
#endif /* _NGX_WIN32_CONFIG_H_INCLUDED_ */