aboutsummaryrefslogtreecommitdiffstats
path: root/main/coova-chilli/100-fix-sysinfo-redeclaration.patch
blob: 446eb63ced4a270385a124f796ff0f23b5eb7ca5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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>