summaryrefslogtreecommitdiff
path: root/source3/lib/replace/replace.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-04-16 09:20:52 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:19:22 -0500
commitcd8f2e5c57e7917c7bd3dbd1d9a895c7c9b18556 (patch)
tree45006ea0c146232107ece163d75bc3e8ea6c8033 /source3/lib/replace/replace.h
parent4a245a15803e3df93cdb197adfc1c1046c3a8716 (diff)
downloadsamba-cd8f2e5c57e7917c7bd3dbd1d9a895c7c9b18556.tar.gz
samba-cd8f2e5c57e7917c7bd3dbd1d9a895c7c9b18556.tar.bz2
samba-cd8f2e5c57e7917c7bd3dbd1d9a895c7c9b18556.zip
r22252: merge from samba4:
add prototype of setenv metze (This used to be commit 42ccfaf5e58d92e04ba490f726e5d6972039bdc4)
Diffstat (limited to 'source3/lib/replace/replace.h')
-rw-r--r--source3/lib/replace/replace.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/lib/replace/replace.h b/source3/lib/replace/replace.h
index 959d44b33e..3b09216257 100644
--- a/source3/lib/replace/replace.h
+++ b/source3/lib/replace/replace.h
@@ -160,7 +160,11 @@ size_t rep_strnlen(const char *s, size_t n);
#ifndef HAVE_SETENV
#define setenv rep_setenv
-int rep_setenv(const char *name, const char *value, int overwrite);
+int rep_setenv(const char *name, const char *value, int overwrite);
+#else
+#ifndef HAVE_DECL_SETENV
+int setenv(const char *name, const char *value, int overwrite);
+#endif
#endif
#ifndef HAVE_UNSETENV