summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/replace.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/lib/replace.c b/source4/lib/replace.c
index 63e6a71149..a4f3da1a66 100644
--- a/source4/lib/replace.c
+++ b/source4/lib/replace.c
@@ -322,7 +322,9 @@ duplicate a string
return(ret);
}
#endif /* HAVE_STRDUP */
-#if 0 /* REWRITE: not thread safe */
+
+#ifndef WITH_PTHREADS
+/* REWRITE: not thread safe */
#ifdef REPLACE_INET_NTOA
char *rep_inet_ntoa(struct in_addr ip)
{
@@ -334,6 +336,7 @@ char *rep_inet_ntoa(struct in_addr ip)
}
#endif /* REPLACE_INET_NTOA */
#endif
+
#ifndef HAVE_STRTOUL
#ifndef ULONG_MAX
#define ULONG_MAX ((unsigned long)(~0L)) /* 0xFFFFFFFF */