diff options
author | Igor Zinkovsky <igorzi@microsoft.com> | 2012-01-17 02:26:58 +0400 |
---|---|---|
committer | Igor Zinkovsky <igorzi@microsoft.com> | 2012-01-17 02:44:49 +0400 |
commit | 95844451b6651fa5ad66a09f971cc139b90c63aa (patch) | |
tree | 8bc07a93a30a554b42c2a840dd8c24dad895dd71 /src | |
parent | 60040a4f366d436d759729530f4d19e7e1958e51 (diff) |
fix windows build
Diffstat (limited to 'src')
-rw-r--r-- | src/ngx-queue.h | 3 | ||||
-rw-r--r-- | src/node_vars.h | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/ngx-queue.h b/src/ngx-queue.h index 8c5e461762b..5d077c5d13a 100644 --- a/src/ngx-queue.h +++ b/src/ngx-queue.h @@ -7,6 +7,9 @@ #ifndef _NGX_QUEUE_H_INCLUDED_ #define _NGX_QUEUE_H_INCLUDED_ +#ifdef _WIN32 +# include <stddef.h> +#endif typedef struct ngx_queue_s ngx_queue_t; diff --git a/src/node_vars.h b/src/node_vars.h index f50938ab984..e0acbff447c 100644 --- a/src/node_vars.h +++ b/src/node_vars.h @@ -9,6 +9,10 @@ #include <uv.h> #include <http_parser.h> +#if defined(_MSC_VER) +# define PATH_MAX MAX_PATH +#endif + #ifndef PATH_MAX # define PATH_MAX 4096 #endif |