diff options
author | David Robillard <d@drobilla.net> | 2015-10-04 19:36:55 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-10-04 19:36:55 +0000 |
commit | 27dd798dc3570ebe61f5afc4a8a77ef1e83fcac8 (patch) | |
tree | ae403f92677b1898caf36bb50ad2a3ebbade3b59 | |
parent | 1bdcf3843770e085adbb7d665153b7a4d6ee7b7b (diff) | |
download | lilv-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |