summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-10-04 19:36:55 +0000
committerDavid Robillard <d@drobilla.net>2015-10-04 19:36:55 +0000
commit27dd798dc3570ebe61f5afc4a8a77ef1e83fcac8 (patch)
treeae403f92677b1898caf36bb50ad2a3ebbade3b59
parent1bdcf3843770e085adbb7d665153b7a4d6ee7b7b (diff)
downloadlilv-27dd798dc3570ebe61f5afc4a8a77ef1e83fcac8.tar.gz
lilv-27dd798dc3570ebe61f5afc4a8a77ef1e83fcac8.tar.bz2
lilv-27dd798dc3570ebe61f5afc4a8a77ef1e83fcac8.zip
Fix compilation on BSD
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5744 a436a847-0d15-0410-975c-d299462d15a1
-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);