summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-12-16 04:10:47 +0000
committerAndrew Tridgell <tridge@samba.org>2003-12-16 04:10:47 +0000
commitb2b9ea54298077cba7df8a7cd849184c40e02e4b (patch)
treef6cac1a20f36fa7ef4fb16899ac3e3290c1c2ca7 /source4
parent1abd0be41e7dde4e2edda7fe4c77f231a1583fda (diff)
downloadsamba-b2b9ea54298077cba7df8a7cd849184c40e02e4b.tar.gz
samba-b2b9ea54298077cba7df8a7cd849184c40e02e4b.tar.bz2
samba-b2b9ea54298077cba7df8a7cd849184c40e02e4b.zip
enable rep_inet_ntoa() for non-pthread builds
(This used to be commit f50d4b602af73045e5b15d62fd24224eba849fd1)
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 */