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

Commit

Permalink
win: link to psapi.lib
Browse files Browse the repository at this point in the history
broke in 65c2763
  • Loading branch information
ry committed Sep 2, 2011
1 parent c28f20f commit 1976288
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions node.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -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': [
Expand Down
1 change: 1 addition & 0 deletions src/platform_win32.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#endif

#include <platform_win32.h>
#include <psapi.h>

namespace node {

Expand Down
1 change: 1 addition & 0 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down

0 comments on commit 1976288

Please sign in to comment.