summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-04-08 21:02:52 +0200
committerDavid Robillard <d@drobilla.net>2019-04-14 22:58:06 +0200
commitf5af942a11bd2f3b718adf70ca15c4a62372ee78 (patch)
treed4cebb6a524de4025423f6b0e58e006b87666659 /src
parent84762e0bfbc76d45e3e5bcbd42a49bb63c539dd7 (diff)
downloadlilv-f5af942a11bd2f3b718adf70ca15c4a62372ee78.tar.gz
lilv-f5af942a11bd2f3b718adf70ca15c4a62372ee78.tar.bz2
lilv-f5af942a11bd2f3b718adf70ca15c4a62372ee78.zip
Remove support for OSX < 10.6
Diffstat (limited to 'src')
-rw-r--r--src/util.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/util.c b/src/util.c
index 3f034b9..1daf0ac 100644
--- a/src/util.c
+++ b/src/util.c
@@ -459,19 +459,9 @@ lilv_realpath(const char* path)
char* out = (char*)malloc(MAX_PATH);
GetFullPathName(path, MAX_PATH, out, NULL);
return out;
-#elif _POSIX_VERSION >= 200809L
+#else
char* real_path = realpath(path, NULL);
return real_path ? real_path : lilv_strdup(path);
-#else
- // OSX <= 10.5, if anyone cares. I sure don't.
- char* out = (char*)malloc(PATH_MAX);
- char* real_path = realpath(path, out);
- if (!real_path) {
- free(out);
- return lilv_strdup(path);
- } else {
- return real_path;
- }
#endif
}