git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1abd0be
)
enable rep_inet_ntoa() for non-pthread builds
author
Andrew Tridgell
<tridge@samba.org>
Tue, 16 Dec 2003 04:10:47 +0000
(
04:10
+0000)
committer
Andrew Tridgell
<tridge@samba.org>
Tue, 16 Dec 2003 04:10:47 +0000
(
04:10
+0000)
(This used to be commit
f50d4b602af73045e5b15d62fd24224eba849fd1
)
source4/lib/replace.c
patch
|
blob
|
history
diff --git
a/source4/lib/replace.c
b/source4/lib/replace.c
index 63e6a71149794e258046e57e1b5716a9765b7906..a4f3da1a6642b3d23ef53ad0f5e5f75bd578e084 100644
(file)
--- 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 */