Browse Source

Mingw32 has no inet_pton/inet_ntop; import them from c-ares (hack)

v0.7.4-release
Bert Belder 14 years ago
parent
commit
3947269f97
  1. 12
      src/node_cares.cc

12
src/node_cares.cc

@ -24,6 +24,18 @@
# endif # endif
#endif // __OpenBSD__ #endif // __OpenBSD__
/* HACK to use inet_pton/inet_ntop from c-ares because mingw32 doesn't have it /*
/* TODO fixme */
#ifdef __MINGW32__
extern "C" {
# include <inet_net_pton.h>
# include <inet_ntop.h>
}
# define inet_pton ares_inet_pton
# define inet_ntop ares_inet_ntop
#endif
namespace node { namespace node {
using namespace v8; using namespace v8;

Loading…
Cancel
Save