kexec-tools-klibc: Fix build with musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
(cherry picked from commit b97358d5a3)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
Khem Raj 2017-07-13 22:40:10 -07:00 committed by Armin Kuster
parent 142960bcf3
commit a46622071e
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,30 @@
From 86b962e7c0de43b20b6210d059e4855ce87078bc Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Thu, 13 Jul 2017 16:20:08 -0700
Subject: [PATCH] Adjust the order of headers to fix build for musl
Fixes
kexec/ifdown.c:33:16: error: storage size of 'ifc' isn't known
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
kexec/ifdown.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kexec/ifdown.c b/kexec/ifdown.c
index 2215798..e13f777 100644
--- a/kexec/ifdown.c
+++ b/kexec/ifdown.c
@@ -16,8 +16,8 @@ char *v_ifdown = "@(#)ifdown.c 1.11 02-Jun-1998 miquels@cistron.nl";
#include <sys/time.h>
#include <errno.h>
-#include <net/if.h>
#include <netinet/in.h>
+#include <net/if.h>
#define MAX_IFS 64
--
2.13.2

View File

@ -20,6 +20,7 @@ SRC_URI += " \
file://sha256.patch \ file://sha256.patch \
file://sysconf_nrprocessors.patch \ file://sysconf_nrprocessors.patch \
file://fix-out-of-tree-build.patch \ file://fix-out-of-tree-build.patch \
file://0001-Adjust-the-order-of-headers-to-fix-build-for-musl.patch \
" "
SRC_URI_append_arm = " file://arm_crashdump.patch" SRC_URI_append_arm = " file://arm_crashdump.patch"