wolfcw / libfaketime

libfaketime modifies the system time for a single application
https://github.com/wolfcw/libfaketime
GNU General Public License v2.0
2.62k stars 319 forks source link

fix build on recent musl (stat64 compat) #453

Closed martinetd closed 5 months ago

martinetd commented 5 months ago

musl removed LFS64 compat[1] so stat64 is no longer defined by default, but we can bring it back for now through _LARGEFILE64_SOURCE

Link: https://www.openwall.com/lists/musl/2022/09/26/1 [1] Fixes: #446


Hi & thanks for libfaketime!

446 ended up in a low "let's just not use alpine 3.19" note but it's easy enough to keep the build working for now, and it also doesn't seem to break on glibc either (running tests seem happy)