diff options
Diffstat (limited to 'lib/lstat-stub.c')
-rw-r--r-- | lib/lstat-stub.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/lstat-stub.c b/lib/lstat-stub.c new file mode 100644 index 000000000..9ed163598 --- /dev/null +++ b/lib/lstat-stub.c @@ -0,0 +1,12 @@ +#include <config.h> +#include <sys/stat.h> + +/* A trivial substitute for `lstat'. + + DJGPP 2.03 and earlier don't have `lstat' and don't support + symlinks. */ + +int lstat (const char *fname, struct stat *st_buf) +{ + return stat (fname, st_buf); +} |