From: Miko Larsson <mikoxyzzz@xxxxxxxxx> This fixes the build with musl + clang >=15; musl doesn't declare lseek64() otherwise, and clang >=15 doesn't allow implicit declarations. Fixes: 0f45e68cb04a ("libtracefs: Add unit tests for tracefs_cpu functions") Signed-off-by: Miko Larsson <mikoxyzzz@xxxxxxxxx> --- utest/tracefs-utest.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utest/tracefs-utest.c b/utest/tracefs-utest.c index 70bcf3e..224903b 100644 --- a/utest/tracefs-utest.c +++ b/utest/tracefs-utest.c @@ -3,6 +3,8 @@ * Copyright (C) 2020, VMware, Tzvetomir Stoyanov <tz.stoyanov@xxxxxxxxx> * */ +#define _LARGEFILE64_SOURCE + #include <stdio.h> #include <stdlib.h> #include <sys/stat.h> -- 2.43.0