aboutsummaryrefslogtreecommitdiffstats
path: root/src/bindfs.c
diff options
context:
space:
mode:
authorMartin Pärtel <martin.partel@gmail.com>2020-03-22 16:34:25 +0200
committerMartin Pärtel <martin.partel@gmail.com>2020-03-22 16:34:25 +0200
commitdf713c86d65324d48d6f3094fd3a12e3ca1066bf (patch)
tree5337300820653c5b03592060dceef3670f68c950 /src/bindfs.c
parentd2665937bdb92f5ee6d13d957918860fd703b98a (diff)
downloadbindfs-df713c86d65324d48d6f3094fd3a12e3ca1066bf.tar.gz
Defined _DARWIN_BETTER_REALPATH to get a non-broken realpath() on Catalina (issue #83).
Diffstat (limited to 'src/bindfs.c')
-rw-r--r--src/bindfs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bindfs.c b/src/bindfs.c
index 870a650..3ef87fb 100644
--- a/src/bindfs.c
+++ b/src/bindfs.c
@@ -42,6 +42,9 @@
/* The new non-deprecated version of _BSD_SOURCE */
#define _DEFAULT_SOURCE
+/* Fix MacOS realpath() broken around Catalina (#83) */
+#define _DARWIN_BETTER_REALPATH
+
#include <stdlib.h>
#include <stddef.h>
#include <stdio.h>