summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-12-17 00:07:40 -0500
committerTavian Barnes <tavianator@tavianator.com>2016-12-17 00:07:40 -0500
commit8f598c3a7fcf4d3750690b6d913530fbe76890bd (patch)
treed03790265ebfbb00faaf1f44b9a005c50af710a0
parentc218fea5eeff80e11e9b71c29f9cbbcc945019e5 (diff)
downloadbfs-8f598c3a7fcf4d3750690b6d913530fbe76890bd.tar.xz
Fix the build on macOS
macOS hides st_[acm]timespec if _POSIX_C_SOURCE is defined, unless _DARWIN_C_SOURCE is too.
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a5ec278..472d495 100644
--- a/Makefile
+++ b/Makefile
@@ -32,6 +32,7 @@ LOCAL_CPPFLAGS := \
-D_GNU_SOURCE \
-D_ATFILE_SOURCE \
-D__EXTENSIONS__ \
+ -D_DARWIN_C_SOURCE \
-DBFS_VERSION=\"$(VERSION)\"
LOCAL_CFLAGS := -std=c99