diff --git a/lib/fchdir-stub.c b/lib/fchdir-stub.c new file mode 100644 index 000000000..922236211 --- /dev/null +++ b/lib/fchdir-stub.c @@ -0,0 +1,14 @@ +#include +#include +#include + +/* A trivial substitute for `fchdir'. + + DJGPP 2.03 and earlier don't have `fchdir'. */ + +int +fchdir (int fd) +{ + errno = ENOSYS; + return -1; +}