Skip to content

Commit

Permalink
Fix gcc 4.x build
Browse files Browse the repository at this point in the history
  • Loading branch information
rmustacc committed Sep 9, 2011
1 parent 2be3896 commit 0ab1b39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion kstat.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class KStatReader : node::ObjectWrap {
static void Initialize(Handle<Object> target);

protected:
static Persistent<FunctionTemplate> KStatReader::templ;
static Persistent<FunctionTemplate> templ;

KStatReader(string *module, string *classname,
string *name, int instance);
Expand Down
1 change: 1 addition & 0 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ def configure(conf):

def build(bld):
obj = bld.new_task_gen('cxx', 'shlib', 'node_addon')
obj.cxxflags = '-Wno-write-strings'
obj.target = 'kstat'
obj.ldflags = '-lkstat'
obj.source = 'kstat.cc'

0 comments on commit 0ab1b39

Please sign in to comment.