summaryrefslogtreecommitdiffhomepage
path: root/src/os/win32
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/win32')
-rw-r--r--src/os/win32/ngx_init.c11
-rw-r--r--src/os/win32/ngx_os_init.h12
2 files changed, 23 insertions, 0 deletions
diff --git a/src/os/win32/ngx_init.c b/src/os/win32/ngx_init.c
new file mode 100644
index 000000000..cc4f25e62
--- /dev/null
+++ b/src/os/win32/ngx_init.c
@@ -0,0 +1,11 @@
+
+#include <ngx_os_init.h>
+
+int ngx_os_init(ngx_log_t *log)
+{
+ if (ngx_init_sockets(&ngx_log) == NGX_ERROR) {
+ return NGX_ERROR;
+ }
+
+ return NGX_OK;
+}
diff --git a/src/os/win32/ngx_os_init.h b/src/os/win32/ngx_os_init.h
new file mode 100644
index 000000000..5c445ace6
--- /dev/null
+++ b/src/os/win32/ngx_os_init.h
@@ -0,0 +1,12 @@
+#ifndef _NGX_OS_INIT_H_INCLUDED_
+#define _NGX_OS_INIT_H_INCLUDED_
+
+
+#include <ngx_config.h>
+#include <ngx_log.h>
+
+
+int ngx_os_init(ngx_log_t *log);
+
+
+#endif /* _NGX_OS_INIT_H_INCLUDED_ */