summaryrefslogtreecommitdiffstats
path: root/package/ipmiutil/0005-add-missing-param.h-header-include.patch
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2015-09-29 09:36:17 +0300
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-09-29 19:43:31 +0200
commitf9c2858df147c7827aa2fb405bdc05183ccf9eb1 (patch)
tree87a407244ff18c8bd5d745375b075b43be2bc364 /package/ipmiutil/0005-add-missing-param.h-header-include.patch
parent7cc5e6daed2858bbfe020309e3834ee8db64e22b (diff)
downloadbuildroot-f9c2858df147c7827aa2fb405bdc05183ccf9eb1.tar.gz
buildroot-f9c2858df147c7827aa2fb405bdc05183ccf9eb1.zip
ipmiutil: fix musl build issues
Add patches fixing a number of build failures under musl. The first patch fixes the following autobuild failures: http://autobuild.buildroot.net/results/bc8/bc8f97f0739e5b842057fdf60eb9309c3e30fac1/ http://autobuild.buildroot.net/results/937/937163f988bb3680630544f6c0ed45b18bc83511/ http://autobuild.buildroot.net/results/862/862af4c6be4b78e65528195305653eedac4163c6/ and others. Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/ipmiutil/0005-add-missing-param.h-header-include.patch')
-rw-r--r--package/ipmiutil/0005-add-missing-param.h-header-include.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/package/ipmiutil/0005-add-missing-param.h-header-include.patch b/package/ipmiutil/0005-add-missing-param.h-header-include.patch
new file mode 100644
index 0000000000..30bc47bc39
--- /dev/null
+++ b/package/ipmiutil/0005-add-missing-param.h-header-include.patch
@@ -0,0 +1,24 @@
+Add missing linux/param.h header include
+
+Fixes the following build failure under musl:
+
+mem_if.c: In function ‘MapPhysicalMemory’:
+mem_if.c:337:36: error: ‘EXEC_PAGESIZE’ undeclared (first use in this function)
+ ulDiff = (ULONG)(tdStartAddress % EXEC_PAGESIZE);
+ ^
+
+Signed-off-by: Baruch Siach <baruch@tkos.co.il>
+
+diff -Nuar ipmiutil-2.9.5-orig/util/mem_if.c ipmiutil-2.9.5/util/mem_if.c
+--- ipmiutil-2.9.5-orig/util/mem_if.c 2014-11-04 19:46:11.000000000 +0200
++++ ipmiutil-2.9.5/util/mem_if.c 2015-09-29 08:08:31.800459775 +0300
+@@ -65,6 +65,9 @@
+ #include <sys/param.h>
+ #include <sys/mman.h>
+ #include <sys/ioctl.h>
++#ifdef __linux__
++#include <linux/param.h>
++#endif
+ #endif
+ #if defined(SOLARIS) || defined(BSD)
+ #define EXEC_PAGESIZE 4096
OpenPOWER on IntegriCloud