From ecd1ab49cc4812644091587622706f50d05e6323 Mon Sep 17 00:00:00 2001 From: Jaehoon You Date: Wed, 22 Jul 2015 15:21:43 +0900 Subject: [PATCH] coova-chilli: fix compile error with musl Signed-off-by: Jaehoon You --- .../patches/400-fix-compile-with-musl.patch | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 net/coova-chilli/patches/400-fix-compile-with-musl.patch diff --git a/net/coova-chilli/patches/400-fix-compile-with-musl.patch b/net/coova-chilli/patches/400-fix-compile-with-musl.patch new file mode 100644 index 0000000000..a810a73492 --- /dev/null +++ b/net/coova-chilli/patches/400-fix-compile-with-musl.patch @@ -0,0 +1,61 @@ +--- a/src/system.h ++++ b/src/system.h +@@ -78,11 +78,6 @@ + #include + #endif + +-#ifdef HAVE_LINUX_SYSINFO_H +-#define _LINUX_KERNEL_H +-#include +-#endif +- + #ifdef HAVE_TIME_H + #include + #endif +@@ -123,6 +118,11 @@ + #include + #endif + ++#ifdef HAVE_SYS_SYSINFO_H ++#define _LINUX_SYSINFO_H ++#include ++#endif ++ + #if defined(__linux__) + #include + #include +@@ -135,10 +135,6 @@ + #include + #endif + +-#ifdef HAVE_SYS_SYSINFO_H +-#include +-#endif +- + #elif defined (__FreeBSD__) || defined (__APPLE__) || defined (__OpenBSD__) || defined (__NetBSD__) + #include + #include +@@ -170,10 +166,6 @@ + #include + #endif + +-#ifdef HAVE_NET_ETHERNET_H +-#include +-#endif +- + #ifdef HAVE_ASM_TYPES_H + #include + #endif +--- a/src/chilli_limits.h ++++ b/src/chilli_limits.h +@@ -18,8 +18,8 @@ + * + */ + +-#ifndef _LIMITS_H +-#define _LIMITS_H ++#ifndef _CHILLI_LIMITS_H ++#define _CHILLI_LIMITS_H + + /* + * extracted from various .h files, needs some cleanup.