Browse Source

Fix MSVS building.

v0.7.4-release
Peter Bright 14 years ago
committed by Bert Belder
parent
commit
b9d777734d
  1. 2
      generate-projects.bat
  2. 2
      node.gyp
  3. 8
      src/node.cc
  4. 1
      tools/gyp_node

2
generate-projects.bat

@ -1,2 +1,2 @@
@echo off
python tools\gyp_node -f msvs -D msvs_multi_core_compile=true
python tools\gyp_node -f msvs -G msvs_version=2010 -D msvs_multi_core_compile=true

2
node.gyp

@ -74,7 +74,7 @@
'dependencies': [
'deps/http_parser/http_parser.gyp:http_parser',
'deps/v8/tools/gyp/v8.gyp:v8',
'deps/uv/build/all.gyp:uv',
'deps/uv/all.gyp:uv',
'node_js2c#host',
],

8
src/node.cc

@ -49,6 +49,9 @@
#define getcwd _getcwd
#include <process.h>
#define getpid _getpid
#include <io.h>
#define umask _umask
typedef int mode_t;
#endif
#include <errno.h>
#include <sys/types.h>
@ -1443,11 +1446,6 @@ static Handle<Value> Cwd(const Arguments& args) {
return scope.Close(cwd);
}
#ifndef __POSIX__
# define umask _umask
#endif
static Handle<Value> Umask(const Arguments& args) {
HandleScope scope;
unsigned int old;

1
tools/gyp_node

@ -42,7 +42,6 @@ if __name__ == '__main__':
# Tell make to write its output into the same dir
args.extend(['-Goutput_dir=' + output_dir])
args.append('-S-nodegyp')
args.append('-Dtarget_arch=ia32')
args.append('-Dcomponent=static_library')
args.append('-Dlibrary=static_library')

Loading…
Cancel
Save