summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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
}