diff options
Diffstat (limited to 'lib/replace/replace.c')
-rw-r--r-- | lib/replace/replace.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/replace/replace.c b/lib/replace/replace.c index 0683f556eb..78c688d50c 100644 --- a/lib/replace/replace.c +++ b/lib/replace/replace.c @@ -616,6 +616,14 @@ int rep_utimes(const char *filename, const struct timeval tv[2]) } #endif +#ifndef HAVE_DUP2 +int rep_dup2(int oldfd, int newfd) +{ + errno = ENOSYS; + return -1; +} +#endif + #ifndef HAVE_CHOWN /** chown isn't used much but OS/2 doesn't have it |