summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index 7def7bd..6c03a94 100644
--- a/src/util.c
+++ b/src/util.c
@@ -48,6 +48,7 @@ CreateSymbolicLink(LPCTSTR linkpath, LPCTSTR targetpath, DWORD flags)
# endif /* _MSC_VER < 1500 */
#else
# include <dirent.h>
+# include <limits.h>
# include <unistd.h>
#endif
@@ -310,7 +311,7 @@ lilv_copy_file(const char* src, const char* dst)
}
if (!st && (ferror(in) || ferror(out))) {
- st = EBADFD;
+ st = EBADF;
}
free(page);