aboutsummaryrefslogtreecommitdiffstats
path: root/main/coova-chilli/100-fix-sysinfo-redeclaration.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-10-28 09:58:53 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-10-28 10:00:00 +0000
commit496501fa630a848b15f8e92d34d0ba80a11a01cf (patch)
treebdc71624bad321f9c7940b9e3aea8a9a61c74839 /main/coova-chilli/100-fix-sysinfo-redeclaration.patch
parentea3ce4390ea88dd4dac6ccf0b8c7cbfe066abba8 (diff)
downloadaports-496501fa630a848b15f8e92d34d0ba80a11a01cf.tar.bz2
aports-496501fa630a848b15f8e92d34d0ba80a11a01cf.tar.xz
main/coova-chilli: build fix for sysinfo redeclaration
http://lists.coova.org/pipermail/chilli/2013-August/002347.html
Diffstat (limited to 'main/coova-chilli/100-fix-sysinfo-redeclaration.patch')
-rw-r--r--main/coova-chilli/100-fix-sysinfo-redeclaration.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/main/coova-chilli/100-fix-sysinfo-redeclaration.patch b/main/coova-chilli/100-fix-sysinfo-redeclaration.patch
new file mode 100644
index 0000000000..446eb63ced
--- /dev/null
+++ b/main/coova-chilli/100-fix-sysinfo-redeclaration.patch
@@ -0,0 +1,24 @@
+--- a/src/system.h
++++ b/src/system.h
+@@ -76,10 +76,6 @@
+ #include <sys/stat.h>
+ #endif
+
+-#ifdef HAVE_SYS_SYSINFO_H
+-#include <sys/sysinfo.h>
+-#endif
+-
+ #ifdef HAVE_TIME_H
+ #include <time.h>
+ #endif
+@@ -132,6 +128,10 @@
+ #include <linux/un.h>
+ #endif
+
++#ifdef HAVE_SYS_SYSINFO_H
++#include <sys/sysinfo.h>
++#endif
++
+ #elif defined (__FreeBSD__) || defined (__APPLE__) || defined (__OpenBSD__) || defined (__NetBSD__)
+ #include <net/if.h>
+ #include <net/bpf.h>