diff --git a/binding.gyp b/binding.gyp index a0c5faa53..79138574a 100644 --- a/binding.gyp +++ b/binding.gyp @@ -7,6 +7,11 @@ "targets": [ { "target_name": "<(module_name)", + 'conditions': [ + ['OS!="os390"', { + 'cflags': [ '-include ../src/gcc-preinclude.h' ], + }], + ], "include_dirs": [" %s)" + " && pax -ofrom=ISO8859-1,to=IBM-1047 -rf %s") + cmd = cmdtype % (dirname, tarball, tempfile.name, tempfile.name) + os.system(cmd) +else: + tfile = tarfile.open(tarball,'r:gz'); + tfile.extractall(dirname) sys.exit(0) + diff --git a/deps/sqlite3.gyp b/deps/sqlite3.gyp index 80d0632b1..bbde6c7d2 100755 --- a/deps/sqlite3.gyp +++ b/deps/sqlite3.gyp @@ -2,9 +2,16 @@ 'includes': [ 'common-sqlite.gypi' ], 'target_defaults': { 'default_configuration': 'Release', - 'cflags':[ - '-std=c99' - ], + 'conditions':[ + 'OS=="os390"', { + 'cflags':[ + '-qlanglvl=stdc99' + ] + }, { + 'cflags':[ + '-std=c99' + ] + }], 'configurations': { 'Debug': { 'defines': [ 'DEBUG', '_DEBUG' ], @@ -71,7 +78,11 @@ 'dependencies': [ 'action_before_build' ], - 'cflags': [ '-include ../src/gcc-preinclude.h' ], + 'conditions': [ + ['OS!="os390"', { + 'cflags': [ '-include ../src/gcc-preinclude.h' ], + }], + ], 'sources': [ '<(SHARED_INTERMEDIATE_DIR)/sqlite-autoconf-<@(sqlite_version)/sqlite3.c' ], diff --git a/package.json b/package.json index f669ecf04..0239ecd0d 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "url": "git://github.com/mapbox/node-sqlite3.git" }, "dependencies": { - "nan": "~2.4.0", + "nan": "^2.5.0", "node-pre-gyp": "~0.6.31" }, "bundledDependencies": [