aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMartin Pärtel <martin.partel@gmail.com>2021-02-13 15:56:57 +0200
committerMartin Pärtel <martin.partel@gmail.com>2021-02-13 15:56:57 +0200
commitbc5313dc583cad9a3949bd798995ab1ee398ecf6 (patch)
tree3eef96d1b7cbb7a4e05a3ea954b1bc75231c1fd8 /configure.ac
parent2cf41a75c11472bd6737b48c61f0a3d30cd6f242 (diff)
downloadbindfs-bc5313dc583cad9a3949bd798995ab1ee398ecf6.tar.gz
Refactored and unit-tested filter_special_opts. Shaved a bunch of yaks on the way.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 8 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index d0d101a..0ecee3e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -28,8 +28,14 @@ fi
AM_CONDITIONAL(BUILD_OS_IS_DARWIN, [test x"$build_os" = darwin])
-my_CPPFLAGS="-D_REENTRANT -D_FILE_OFFSET_BITS=64"
-my_CFLAGS="-Wall -fno-common"
+# _XOPEN_SOURCE is >= 500 for pread/pwrite; >= 700 for utimensat.
+# __BSD_VISIBLE is for flock() on FreeBSD. It otherwise gets hidden by _XOPEN_SOURCE.
+# _BSD_SOURCE is for stat() nanosecond precision and lutimes().
+# _DEFAULT_SOURCE is the new non-deprecated version of _BSD_SOURCE.
+# _DARWIN_BETTER_REALPATH fixes MacOS realpath() broken around Catalina (#83).
+my_CPPFLAGS="-D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=700 -D__BSD_VISIBLE=1 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_DARWIN_BETTER_REALPATH"
+
+my_CFLAGS="-Wall -fno-common -std=c99"
my_LDFLAGS="-pthread"
AC_SUBST([my_CPPFLAGS])
AC_SUBST([my_CFLAGS])