Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/makedumpfile: fix build with musl libc
@ 2024-07-31  6:12 Alexander Egorenkov
  2024-07-31 10:24 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Egorenkov @ 2024-07-31  6:12 UTC (permalink / raw)
  To: buildroot; +Cc: Alexander Egorenkov

http://autobuild.buildroot.net/results/7a0ef4f3f3d3ecc6b84a573409302eae5ec90e39/

Fixes: 6a1c376492d6 ("package/makedumpfile: enable build with musl libc")
Signed-off-by: Alexander Egorenkov <egorenar-dev@posteo.net>
---
 .../0003-Fix-build-with-musl-libc.patch       | 27 +++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 package/makedumpfile/0003-Fix-build-with-musl-libc.patch

diff --git a/package/makedumpfile/0003-Fix-build-with-musl-libc.patch b/package/makedumpfile/0003-Fix-build-with-musl-libc.patch
new file mode 100644
index 000000000000..26718fb7f6b9
--- /dev/null
+++ b/package/makedumpfile/0003-Fix-build-with-musl-libc.patch
@@ -0,0 +1,27 @@
+From 3ae383c5dfdbd4dc5cfb888b3cc187819658068b Mon Sep 17 00:00:00 2001
+From: Alexander Egorenkov <egorenar-dev@posteo.net>
+Date: Wed, 31 Jul 2024 07:43:50 +0200
+Subject: [PATCH 1/1] Fix build with musl libc
+
+musl libc defines PAGESIZE in its limits.h header file.
+
+Signed-off-by: Alexander Egorenkov <egorenar-dev@posteo.net>
+---
+ makedumpfile.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/makedumpfile.h b/makedumpfile.h
+index 6b43a8b44f93..54e894bfee2b 100644
+--- a/makedumpfile.h
++++ b/makedumpfile.h
+@@ -169,6 +169,7 @@ test_bit(int nr, unsigned long addr)
+ #define PTOB(X)			(((unsigned long long)(X)) << PAGESHIFT())
+ #define BTOP(X)			(((unsigned long long)(X)) >> PAGESHIFT())
+ 
++#undef PAGESIZE /* musl's limits.h defines PAGESIZE */
+ #define PAGESIZE()		(info->page_size)
+ #define PAGESHIFT()		(info->page_shift)
+ #define PAGEOFFSET(X)		(((unsigned long long)(X)) & (PAGESIZE() - 1))
+-- 
+2.46.0
+
-- 
2.46.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2024-07-31 10:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-31  6:12 [Buildroot] [PATCH 1/1] package/makedumpfile: fix build with musl libc Alexander Egorenkov
2024-07-31 10:24 ` Thomas Petazzoni via buildroot

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