Browse files

win: link to psapi.lib

broke in 65c2763
  • Loading branch information...
1 parent c28f20f commit 197628846dd4c9a281b60fc8a18cb4059511367d @ry ry committed Sep 2, 2011
Showing with 3 additions and 0 deletions.
  1. +1 −0 node.gyp
  2. +1 −0 src/platform_win32.cc
  3. +1 −0 wscript
View
1 node.gyp
@@ -112,6 +112,7 @@
# we need to use node's preferred "win32" rather than gyp's preferred "win"
'PLATFORM="win32"',
],
+ 'libraries': [ '-lpsapi.lib' ]
},{ # POSIX
'defines': [ '__POSIX__' ],
'sources': [
View
1 src/platform_win32.cc
@@ -33,6 +33,7 @@
#endif
#include <platform_win32.h>
+#include <psapi.h>
namespace node {
View
1 wscript
@@ -491,6 +491,7 @@ def configure(conf):
conf.env.append_value('LINKFLAGS', '-pg')
if sys.platform.startswith("win32"):
+ conf.env.append_value('LIB', 'psapi')
conf.env.append_value('LIB', 'ws2_32')
conf.env.append_value('LIB', 'winmm')

0 comments on commit 1976288

Please sign in to comment.