diff options
-rw-r--r-- | lib/fchdir-stub.c | 14 |
1 files changed, 14 insertions, 0 deletions
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 <config.h> +#include <sys/types.h> +#include <errno.h> + +/* A trivial substitute for `fchdir'. + + DJGPP 2.03 and earlier don't have `fchdir'. */ + +int +fchdir (int fd) +{ + errno = ENOSYS; + return -1; +} |