Skip to content

Commit 066f38b

Browse files
authored
Merge pull request #510 from bjornfor/fix-musl-build
Only define stat64 when building with glibc
2 parents ffdb51b + 4de86c2 commit 066f38b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libfaketime.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,10 +1273,12 @@ int __lxstat (int ver, const char *path, struct stat *buf)
12731273
STAT_HANDLER(lxstat, buf, ver, path, buf);
12741274
}
12751275

1276+
#ifdef __GLIBC__
12761277
int stat64 (const char *path, struct stat64 *buf)
12771278
{
12781279
STAT64_HANDLER(stat64, buf, path, buf);
12791280
}
1281+
#endif
12801282

12811283
/* Contributed by Philipp Hachtmann in version 0.6 */
12821284
int __xstat64 (int ver, const char *path, struct stat64 *buf)

0 commit comments

Comments
 (0)