Browse Source

Revert "Check for strings.h"

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

7
src/node.cc

@ -5,6 +5,7 @@
#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>
@ -13,12 +14,6 @@
#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,13 +4,7 @@
#include <stdlib.h> // malloc, free #include <stdlib.h> // malloc, free
#include <v8.h> #include <v8.h>
// memcpy #include <string.h> // 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,6 +3,7 @@
#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>
@ -12,12 +13,6 @@
#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 {

6
src/node_crypto.cc

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

8
src/node_events.cc

@ -3,18 +3,14 @@
#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,15 +10,10 @@
#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

6
src/node_net2.cc

@ -4,11 +4,7 @@
#include <node.h> #include <node.h>
#include <node_buffer.h> #include <node_buffer.h>
#ifdef HAVE_STRINGS_H #include <string.h>
# include <strings.h>
#else
# 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,12 +2,8 @@
#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 {

6
src/node_stdio.cc

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

2
wscript

@ -114,8 +114,6 @@ 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