summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-05-03 09:11:47 -0400
committerTavian Barnes <tavianator@tavianator.com>2023-05-03 09:11:47 -0400
commit6d59961d6d5ce91529a17bdad380ee78fa866564 (patch)
tree4fbab6582ddae9c4601897fe9617db83d39383f3 /Makefile
parenta3bed764555f76003bb03c023123846fdff76f1b (diff)
downloadbfs-6d59961d6d5ce91529a17bdad380ee78fa866564.tar.xz
Let musl builds use getdents64()
Glibc exposes a different struct dirent and dirent64, while on musl they are the same. But musl needs _LARGEFILE64_SOURCE to expose the *64() aliases.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 57ff238..7113bc4 100644
--- a/Makefile
+++ b/Makefile
@@ -50,9 +50,10 @@ LOCAL_CPPFLAGS := \
-D_BSD_SOURCE \
-D_DARWIN_C_SOURCE \
-D_DEFAULT_SOURCE \
+ -D_GNU_SOURCE \
+ -D_LARGEFILE64_SOURCE \
-D_FILE_OFFSET_BITS=64 \
-D_TIME_BITS=64 \
- -D_GNU_SOURCE \
-DBFS_VERSION=\"$(VERSION)\"
LOCAL_CFLAGS := -std=c11