Use dup2() replacement from libreplace.
[tprouty/samba.git] / lib / replace / replace.c
index 98d799b07e8f3950fe30039da961c6944964c34f..4aa84b886d1ccd0c335b3b3666ff8e006543c00a 100644 (file)
@@ -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
+