From 41e8061432b20bd59170ad0be2b164cb68ce4fbb Mon Sep 17 00:00:00 2001 From: jow Date: Thu, 19 Sep 2013 12:53:25 +0000 Subject: [PATCH] coova-chilli: fix "struct sysinfo" redeclaration with recent uClibc. Patch from http://lists.coova.org/pipermail/chilli/2013-August/002347.html - refreshed and compile tested locally. git-svn-id: svn://svn.openwrt.org/openwrt/packages@38058 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- net/coova-chilli/Makefile | 4 ++-- .../patches/100-fix-sysinfo-redeclaration.patch | 24 ++++++++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 net/coova-chilli/patches/100-fix-sysinfo-redeclaration.patch diff --git a/net/coova-chilli/Makefile b/net/coova-chilli/Makefile index 3b350cb4d..f4790a026 100644 --- a/net/coova-chilli/Makefile +++ b/net/coova-chilli/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2007-2010 OpenWrt.org +# Copyright (C) 2007-2013 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=coova-chilli PKG_VERSION:=1.2.9 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://ap.coova.org/chilli diff --git a/net/coova-chilli/patches/100-fix-sysinfo-redeclaration.patch b/net/coova-chilli/patches/100-fix-sysinfo-redeclaration.patch new file mode 100644 index 000000000..446eb63ce --- /dev/null +++ b/net/coova-chilli/patches/100-fix-sysinfo-redeclaration.patch @@ -0,0 +1,24 @@ +--- a/src/system.h ++++ b/src/system.h +@@ -76,10 +76,6 @@ + #include + #endif + +-#ifdef HAVE_SYS_SYSINFO_H +-#include +-#endif +- + #ifdef HAVE_TIME_H + #include + #endif +@@ -132,6 +128,10 @@ + #include + #endif + ++#ifdef HAVE_SYS_SYSINFO_H ++#include ++#endif ++ + #elif defined (__FreeBSD__) || defined (__APPLE__) || defined (__OpenBSD__) || defined (__NetBSD__) + #include + #include -- 2.11.0