git.samba.org
/
tprouty
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use dup2() replacement from libreplace.
[tprouty/samba.git]
/
lib
/
replace
/
replace.c
diff --git
a/lib/replace/replace.c
b/lib/replace/replace.c
index 98d799b07e8f3950fe30039da961c6944964c34f..4aa84b886d1ccd0c335b3b3666ff8e006543c00a 100644
(file)
--- a/
lib/replace/replace.c
+++ b/
lib/replace/replace.c
@@
-614,3
+614,12
@@
int rep_utimes(const char *filename, const struct timeval tv[2])
return utime(filename, &u);
}
#endif
+
+#ifndef HAVE_DUP2
+int rep_dup2(int oldfd, int newfd)
+{
+ errno = ENOSYS;
+ return -1;
+}
+#endif
+