diff options
Diffstat (limited to 'lib/readlink-stub.c')
-rw-r--r-- | lib/readlink-stub.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/readlink-stub.c b/lib/readlink-stub.c new file mode 100644 index 000000000..2dba74a33 --- /dev/null +++ b/lib/readlink-stub.c @@ -0,0 +1,14 @@ +#include <config.h> +#include <stddef.h> +#include <errno.h> + +/* A trivial substitute for `readlink'. + + DJGPP 2.03 and earlier don't have `readlink' and don't support + symlinks. */ + +int readlink (const char *filename, char *buffer, size_t size) +{ + errno = EINVAL; + return -1; +} |