Linux Test Project
 help / color / mirror / Atom feed
* [LTP] [PATCH] hugemmap36: Fix compilation on alpine
@ 2026-08-06  7:06 Cyril Hrubis
  2026-08-06  7:41 ` [LTP] " linuxtestproject.agent
  2026-08-06  8:01 ` [LTP] [PATCH] " Andrea Cervesato via ltp
  0 siblings, 2 replies; 4+ messages in thread
From: Cyril Hrubis @ 2026-08-06  7:06 UTC (permalink / raw)
  To: ltp

Use int64_t instead of off64_t that is not defined on musl libc.

Fixes: ae1b3655ed5da (hugemmap36: Migrate the libhugetlbfs/testcases/truncate_above_4GB.c tess)
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
---
 testcases/kernel/mem/hugetlb/hugemmap/hugemmap36.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/kernel/mem/hugetlb/hugemmap/hugemmap36.c b/testcases/kernel/mem/hugetlb/hugemmap/hugemmap36.c
index b48a34f59..5f0d70a05 100644
--- a/testcases/kernel/mem/hugetlb/hugemmap/hugemmap36.c
+++ b/testcases/kernel/mem/hugetlb/hugemmap/hugemmap36.c
@@ -21,7 +21,7 @@
  */
 
 #define _GNU_SOURCE
-#define FOURGIG ((off64_t)0x100000000ULL)
+#define FOURGIG ((int64_t)0x100000000ULL)
 #define MNTPOINT "hugetlbfs/"
 
 #include <signal.h>
-- 
2.54.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-08-06  8:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-06  7:06 [LTP] [PATCH] hugemmap36: Fix compilation on alpine Cyril Hrubis
2026-08-06  7:41 ` [LTP] " linuxtestproject.agent
2026-08-06  8:01 ` [LTP] [PATCH] " Andrea Cervesato via ltp
2026-08-06  8:35   ` Cyril Hrubis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox