summaryrefslogtreecommitdiffstats
path: root/otherlibs/unix/gethost.c
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2002-06-07 09:49:45 +0000
committerXavier Leroy <xavier.leroy@inria.fr>2002-06-07 09:49:45 +0000
commita82c3665042b80a0febcbffdf0577cd37de349ff (patch)
tree25ddb7621d275881c1cfa38e6ce0a2b1462270b8 /otherlibs/unix/gethost.c
parent143761a5142bf30a3321ec7b66bf2f4b2620ac30 (diff)
Portage Mingw et revision du portage Win32/MSVC
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4899 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/unix/gethost.c')
-rw-r--r--otherlibs/unix/gethost.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/otherlibs/unix/gethost.c b/otherlibs/unix/gethost.c
index 167485088..5b3252d59 100644
--- a/otherlibs/unix/gethost.c
+++ b/otherlibs/unix/gethost.c
@@ -32,8 +32,8 @@
#define NETDB_BUFFER_SIZE 10000
#ifdef _WIN32
-#define GETHOSTBYADDR_IS_REENTRANT
-#define GETHOSTBYNAME_IS_REENTRANT
+#define GETHOSTBYADDR_IS_REENTRANT 1
+#define GETHOSTBYNAME_IS_REENTRANT 1
#endif
static int entry_h_length;
@@ -112,7 +112,7 @@ CAMLprim value unix_gethostbyname(value name)
struct hostent * hp;
char * hostname;
-#if HAS_GETHOSTBYNAME_R != 0 || GETHOSTBYNAME_IS_REENTRANT
+#if HAS_GETHOSTBYNAME_R || GETHOSTBYNAME_IS_REENTRANT
hostname = stat_alloc(string_length(name) + 1);
strcpy(hostname, String_val(name));
#else
@@ -148,7 +148,7 @@ CAMLprim value unix_gethostbyname(value name)
#endif
#endif
-#if HAS_GETHOSTBYNAME_R != 0 || GETHOSTBYNAME_IS_REENTRANT
+#if HAS_GETHOSTBYNAME_R || GETHOSTBYNAME_IS_REENTRANT
stat_free(hostname);
#endif