Browse Source

Changes to compile on Andrew Miller's very old machine

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
45ea62a0f6
  1. 15
      deps/libev/wscript
  2. 2
      src/node.cc
  3. 2
      wscript

15
deps/libev/wscript

@ -17,7 +17,18 @@ def configure(conf):
conf.check_cc(header_name="sys/select.h")
conf.check_cc(header_name="sys/eventfd.h")
conf.check_cc(header_name="sys/inotify.h", function_name="inotify_init")
conf.check_cc(header_name="sys/epoll.h", function_name="epoll_ctl")
code = """
#include <sys/epoll.h>
int main() {
epoll_ctl(0, 0, 0, NULL);
return 0;
}
"""
conf.check_cc(fragment=code, define_name="HAVE_EPOLL_CTL", msg="Checking for epoll_ctl")
conf.check_cc(header_name="sys/queue.h", function_name="kqueue")
conf.check_cc(header_name="port.h", function_name="port_create")
conf.check_cc(header_name="poll.h", function_name="poll")
@ -38,6 +49,7 @@ def configure(conf):
conf.check_cc(fragment=code, define_name="HAVE_CLOCK_SYSCALL", execute=True,
msg="Checking for SYS_clock_gettime")
conf.check(lib='rt', uselib_store='RT')
conf.check_cc(lib="rt", header_name="time.h", function_name="clock_gettime")
conf.check_cc(lib="rt", header_name="time.h", function_name="nanosleep")
conf.check_cc(lib="m", header_name="math.h", function_name="ceil")
@ -53,6 +65,7 @@ def build(bld):
libev.target = 'ev'
libev.name = 'ev'
libev.includes = '. ../..'
libev.uselib = "RT"
libev.install_path = None
if bld.env["USE_DEBUG"]:
libev.clone("debug");

2
src/node.cc

@ -268,7 +268,7 @@ Handle<Value> DLOpen(const v8::Arguments& args) {
Exception::Error(String::New("No 'init' symbol found in module."));
return ThrowException(exception);
}
extInit init = reinterpret_cast<extInit>(init_handle);
extInit init = (extInit)(init_handle);
init(target);

2
wscript

@ -161,7 +161,7 @@ def build_v8(bld):
scons = os.path.join(cwd, 'tools/scons/scons.py')
v8rule = 'cd %s && ' \
'python %s -Q mode=%s %s library=static snapshot=on'
'python %s -Q visibility=default mode=%s %s library=static snapshot=on'
arch = ""
if GuessArchitecture() == "x64":

Loading…
Cancel
Save