@ -5,7 +5,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include <limits.h> /* PATH_MAX */
#include <assert.h>
#include <unistd.h>
@ -14,6 +13,12 @@
#include <sys/types.h>
#include <unistd.h> /* setuid, getuid */
#ifdef HAVE_STRINGS_H
# include <strings.h>
#else
# include <string.h>
#endif
#include <node_buffer.h>
#include <node_io_watcher.h>
#include <node_net2.h>
@ -4,7 +4,13 @@
#include <stdlib.h> // malloc, free
#include <v8.h>
#include <string.h> // memcpy
// memcpy
#include <arpa/inet.h> // htons, htonl
@ -3,7 +3,6 @@
#include <node.h>
#include <string.h>
#include <errno.h>
@ -13,6 +12,12 @@
#include <sys/wait.h>
extern char **environ;
namespace node {
@ -4,7 +4,11 @@
@ -3,14 +3,18 @@
#include <sys/socket.h>
#include <netdb.h>
#include <arpa/inet.h> /* inet_ntop */
#include <netinet/in.h> /* sockaddr_in, sockaddr_in6 */
#include <ev.h>
@ -10,10 +10,15 @@
#include <limits.h>
/* used for readlink, AIX doesn't provide it */
#ifndef PATH_MAX
#define PATH_MAX 4096
@ -2,8 +2,12 @@
#include <node_stat_watcher.h>
@ -3,7 +3,11 @@
#include <fcntl.h>
using namespace v8;
@ -114,6 +114,8 @@ def configure(conf):
conf.env["USE_DEBUG"] = Options.options.debug
conf.env["USE_SYSTEM"] = Options.options.system
conf.check_cc(header_name="strings.h")
conf.check(lib='dl', uselib_store='DL')
if not sys.platform.startswith("sunos"):
conf.env.append_value("CCFLAGS", "-rdynamic")