Skip to content

Commit

Permalink
fix build on recent musl (stat64 compat)
Browse files Browse the repository at this point in the history
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: wolfcw#446
  • Loading branch information
martinetd committed Jan 18, 2024
1 parent 2656519 commit b2fe742
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libfaketime.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@

#define _GNU_SOURCE /* required to get RTLD_NEXT defined */

#define _LARGEFILE64_SOURCE 1 /* required for stat64 on musl */

#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
Expand Down

0 comments on commit b2fe742

Please sign in to comment.