From b2b9ea54298077cba7df8a7cd849184c40e02e4b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 16 Dec 2003 04:10:47 +0000 Subject: enable rep_inet_ntoa() for non-pthread builds (This used to be commit f50d4b602af73045e5b15d62fd24224eba849fd1) --- source4/lib/replace.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source4/lib/replace.c') 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 */ -- cgit