Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
fix windows build
  • Loading branch information
Igor Zinkovsky committed Jan 16, 2012
1 parent 60040a4 commit 9584445
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions node.gyp
Expand Up @@ -8,6 +8,7 @@
'node_use_dtrace': 'false',
'node_use_openssl%': 'true',
'node_use_system_openssl%': 'false',
'node_use_isolates%': 'true',
'library_files': [
'src/node.js',
'lib/_debugger.js',
Expand Down Expand Up @@ -94,6 +95,7 @@
'src/v8_typed_array.cc',
'src/udp_wrap.cc',
# headers to make for a more pleasant IDE experience
'src/ngx-queue.h',
'src/handle_wrap.h',
'src/node.h',
'src/node_vars.h',
Expand Down
3 changes: 3 additions & 0 deletions src/ngx-queue.h
Expand Up @@ -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;

Expand Down
4 changes: 4 additions & 0 deletions src/node_vars.h
Expand Up @@ -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
Expand Down

0 comments on commit 9584445

Please sign in to comment.