diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-05-03 09:11:47 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-05-03 09:11:47 -0400 |
commit | 6d59961d6d5ce91529a17bdad380ee78fa866564 (patch) | |
tree | 4fbab6582ddae9c4601897fe9617db83d39383f3 /Makefile | |
parent | a3bed764555f76003bb03c023123846fdff76f1b (diff) | |
download | bfs-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-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |