summaryrefslogtreecommitdiff
path: root/lib/replace/replace.h
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-11-01 03:58:14 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-11-01 03:58:14 +0100
commit5a56c0adf2c63602b819d052644cb14caf732438 (patch)
tree37c6725a0ed7cfcf9708de335e21b52fc2a46c20 /lib/replace/replace.h
parentdf766a303a9114969caa7c51e5e0e29d8e0e3850 (diff)
downloadsamba-5a56c0adf2c63602b819d052644cb14caf732438.tar.gz
samba-5a56c0adf2c63602b819d052644cb14caf732438.tar.bz2
samba-5a56c0adf2c63602b819d052644cb14caf732438.zip
Use dup2() replacement from libreplace.
Diffstat (limited to 'lib/replace/replace.h')
-rw-r--r--lib/replace/replace.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/replace/replace.h b/lib/replace/replace.h
index a8164b642b..70b29722bf 100644
--- a/lib/replace/replace.h
+++ b/lib/replace/replace.h
@@ -358,6 +358,11 @@ struct tm;
char *rep_strptime(const char *buf, const char *format, struct tm *tm);
#endif
+#ifndef HAVE_DUP2
+#define dup2 rep_dup2
+int rep_dup2(int oldfd, int newfd);
+#endif
+
/* Load header file for dynamic linking stuff */
#ifdef HAVE_DLFCN_H
#include <dlfcn.h>