aboutsummaryrefslogtreecommitdiff
path: root/src/os/win32/ngx_files.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-04-23 11:13:12 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-04-23 11:13:12 +0000
commitc28ff717cb27e01cc40bdaebdd2c3826c0a7707d (patch)
treef0cfcf4aac2d0fb1226b4305a90916998008436b /src/os/win32/ngx_files.h
parentae2f2b105ad8e56eea73720a094961cc9e665f3d (diff)
downloadnginx-c28ff717cb27e01cc40bdaebdd2c3826c0a7707d.tar.gz
nginx-c28ff717cb27e01cc40bdaebdd2c3826c0a7707d.zip
issue start up errors and warning on both stderr and error_log
Diffstat (limited to 'src/os/win32/ngx_files.h')
-rw-r--r--src/os/win32/ngx_files.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/os/win32/ngx_files.h b/src/os/win32/ngx_files.h
index 636d14c19..f3561d9b3 100644
--- a/src/os/win32/ngx_files.h
+++ b/src/os/win32/ngx_files.h
@@ -237,4 +237,9 @@ ngx_int_t ngx_directio_off(ngx_fd_t fd);
size_t ngx_fs_bsize(u_char *name);
+#define ngx_stderr GetStdHandle(STD_ERROR_HANDLE)
+#define ngx_set_stderr(fd) SetStdHandle(STD_ERROR_HANDLE, fd)
+#define ngx_set_stderr_n "SetStdHandle(STD_ERROR_HANDLE)"
+
+
#endif /* _NGX_FILES_H_INCLUDED_ */