summaryrefslogtreecommitdiffhomepage
path: root/src/os/win32
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/win32')
-rw-r--r--src/os/win32/ngx_files.h3
-rw-r--r--src/os/win32/ngx_init.c24
2 files changed, 25 insertions, 2 deletions
diff --git a/src/os/win32/ngx_files.h b/src/os/win32/ngx_files.h
index 1cf981089..382136fe2 100644
--- a/src/os/win32/ngx_files.h
+++ b/src/os/win32/ngx_files.h
@@ -36,6 +36,9 @@
FILE_ATTRIBUTE_TEMPORARY|FILE_FLAG_DELETE_ON_CLOSE, \
NULL);
+#define ngx_open_tempfile_n "CreateFile()"
+
+
#define ngx_open_file_n "CreateFile()"
diff --git a/src/os/win32/ngx_init.c b/src/os/win32/ngx_init.c
index cc4f25e62..8c3511fe7 100644
--- a/src/os/win32/ngx_init.c
+++ b/src/os/win32/ngx_init.c
@@ -1,9 +1,29 @@
-#include <ngx_os_init.h>
+#include <ngx_config.h>
+#include <ngx_core.h>
+
+
+int ngx_max_sockets;
+
+
+ngx_os_io_t ngx_os_io = {
+#if 0
+ ngx_unix_recv,
+ NULL,
+ NULL,
+ ngx_freebsd_write_chain
+#else
+ NULL,
+ NULL,
+ NULL,
+ NULL
+#endif
+};
+
int ngx_os_init(ngx_log_t *log)
{
- if (ngx_init_sockets(&ngx_log) == NGX_ERROR) {
+ if (ngx_init_sockets(log) == NGX_ERROR) {
return NGX_ERROR;
}