41e8061432
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
25 lines
463 B
Diff
25 lines
463 B
Diff
--- 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>
|