Browse Source

Check for strings.h

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
032f651824
  1. 7
      src/node.cc
  2. 8
      src/node_buffer.cc
  3. 7
      src/node_child_process.cc
  4. 4
      src/node_crypto.cc
  5. 8
      src/node_events.cc
  6. 7
      src/node_file.cc
  7. 4
      src/node_net2.cc
  8. 6
      src/node_stat_watcher.cc
  9. 4
      src/node_stdio.cc
  10. 2
      wscript

7
src/node.cc

@ -5,7 +5,6 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <strings.h>
#include <limits.h> /* PATH_MAX */ #include <limits.h> /* PATH_MAX */
#include <assert.h> #include <assert.h>
#include <unistd.h> #include <unistd.h>
@ -14,6 +13,12 @@
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h> /* setuid, getuid */ #include <unistd.h> /* setuid, getuid */
#ifdef HAVE_STRINGS_H
# include <strings.h>
#else
# include <string.h>
#endif
#include <node_buffer.h> #include <node_buffer.h>
#include <node_io_watcher.h> #include <node_io_watcher.h>
#include <node_net2.h> #include <node_net2.h>

8
src/node_buffer.cc

@ -4,7 +4,13 @@
#include <stdlib.h> // malloc, free #include <stdlib.h> // malloc, free
#include <v8.h> #include <v8.h>
#include <string.h> // memcpy // memcpy
#ifdef HAVE_STRINGS_H
# include <strings.h>
#else
# include <string.h>
#endif
#include <arpa/inet.h> // htons, htonl #include <arpa/inet.h> // htons, htonl

7
src/node_child_process.cc

@ -3,7 +3,6 @@
#include <node.h> #include <node.h>
#include <assert.h> #include <assert.h>
#include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include <errno.h> #include <errno.h>
#include <unistd.h> #include <unistd.h>
@ -13,6 +12,12 @@
#include <sys/wait.h> #include <sys/wait.h>
#endif #endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#else
# include <string.h>
#endif
extern char **environ; extern char **environ;
namespace node { namespace node {

4
src/node_crypto.cc

@ -4,7 +4,11 @@
#include <node.h> #include <node.h>
#include <node_buffer.h> #include <node_buffer.h>
#ifdef HAVE_STRINGS_H
# include <strings.h>
#else
# include <string.h> # include <string.h>
#endif
#include <stdlib.h> #include <stdlib.h>
#include <errno.h> #include <errno.h>

8
src/node_events.cc

@ -3,14 +3,18 @@
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <netdb.h> #include <netdb.h>
#include <arpa/inet.h> /* inet_ntop */ #include <arpa/inet.h> /* inet_ntop */
#include <netinet/in.h> /* sockaddr_in, sockaddr_in6 */ #include <netinet/in.h> /* sockaddr_in, sockaddr_in6 */
#ifdef HAVE_STRINGS_H
# include <strings.h>
#else
# include <string.h>
#endif
#include <node.h> #include <node.h>
#include <ev.h> #include <ev.h>
#include <v8.h> #include <v8.h>

7
src/node_file.cc

@ -10,10 +10,15 @@
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include <assert.h> #include <assert.h>
#include <string.h>
#include <errno.h> #include <errno.h>
#include <limits.h> #include <limits.h>
#ifdef HAVE_STRINGS_H
# include <strings.h>
#else
# include <string.h>
#endif
/* used for readlink, AIX doesn't provide it */ /* used for readlink, AIX doesn't provide it */
#ifndef PATH_MAX #ifndef PATH_MAX
#define PATH_MAX 4096 #define PATH_MAX 4096

4
src/node_net2.cc

@ -4,7 +4,11 @@
#include <node.h> #include <node.h>
#include <node_buffer.h> #include <node_buffer.h>
#ifdef HAVE_STRINGS_H
# include <strings.h>
#else
# include <string.h> # include <string.h>
#endif
#include <stdlib.h> #include <stdlib.h>
#include <sys/types.h> #include <sys/types.h>

6
src/node_stat_watcher.cc

@ -2,8 +2,12 @@
#include <node_stat_watcher.h> #include <node_stat_watcher.h>
#include <assert.h> #include <assert.h>
#include <string.h>
#include <stdlib.h> #include <stdlib.h>
#ifdef HAVE_STRINGS_H
# include <strings.h>
#else
# include <string.h>
#endif
namespace node { namespace node {

4
src/node_stdio.cc

@ -3,7 +3,11 @@
#include <unistd.h> #include <unistd.h>
#include <fcntl.h> #include <fcntl.h>
#ifdef HAVE_STRINGS_H
# include <strings.h>
#else
# include <string.h> # include <string.h>
#endif
#include <errno.h> #include <errno.h>
using namespace v8; using namespace v8;

2
wscript

@ -114,6 +114,8 @@ def configure(conf):
conf.env["USE_DEBUG"] = Options.options.debug conf.env["USE_DEBUG"] = Options.options.debug
conf.env["USE_SYSTEM"] = Options.options.system conf.env["USE_SYSTEM"] = Options.options.system
conf.check_cc(header_name="strings.h")
conf.check(lib='dl', uselib_store='DL') conf.check(lib='dl', uselib_store='DL')
if not sys.platform.startswith("sunos"): if not sys.platform.startswith("sunos"):
conf.env.append_value("CCFLAGS", "-rdynamic") conf.env.append_value("CCFLAGS", "-rdynamic")

Loading…
Cancel
Save