diff options
author | Miko Larsson <mikoxyzzz@gmail.com> | 2024-02-22 11:12:45 +0100 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2024-02-22 11:12:22 -0500 |
commit | 7b4a9c9c9b962929323f9d97e00fb5e51bb205b9 (patch) | |
tree | df6d4d882d724942a48b0d8d606b7d9e991c8fe4 | |
parent | ba750812f68f0f3314494558496c23f934f8faff (diff) | |
download | libtracefs-7b4a9c9c9b962929323f9d97e00fb5e51bb205b9.tar.gz |
libtracefs utest: Define _LARGEFILE64_SOURCE for lseek64() with musl
This fixes the build with musl + clang >=15; musl doesn't declare
lseek64() otherwise, and clang >=15 doesn't allow implicit declarations.
Link: https://lore.kernel.org/linux-trace-devel/20240222-utest-fixes-v2-2-ba9cd06b41d3@gmail.com
Fixes: 0f45e68cb04a ("libtracefs: Add unit tests for tracefs_cpu functions")
Signed-off-by: Miko Larsson <mikoxyzzz@gmail.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
-rw-r--r-- | utest/tracefs-utest.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/utest/tracefs-utest.c b/utest/tracefs-utest.c index 07ecd32..737e54a 100644 --- a/utest/tracefs-utest.c +++ b/utest/tracefs-utest.c @@ -3,6 +3,8 @@ * Copyright (C) 2020, VMware, Tzvetomir Stoyanov <tz.stoyanov@gmail.com> * */ +#define _LARGEFILE64_SOURCE + #include <stdio.h> #include <stdlib.h> #include <sys/stat.h> |