open-plc-utils: moved to github
[packages.git] / net / coova-chilli / patches / 100-fix-sysinfo-redeclaration.patch
1 --- a/src/system.h
2 +++ b/src/system.h
3 @@ -76,10 +76,6 @@
4  #include <sys/stat.h>
5  #endif
6  
7 -#ifdef HAVE_SYS_SYSINFO_H
8 -#include <sys/sysinfo.h>
9 -#endif
10 -
11  #ifdef HAVE_TIME_H
12  #include <time.h>
13  #endif
14 @@ -132,6 +128,10 @@
15  #include <linux/un.h>
16  #endif
17  
18 +#ifdef HAVE_SYS_SYSINFO_H
19 +#include <sys/sysinfo.h>
20 +#endif
21 +
22  #elif defined (__FreeBSD__)  || defined (__APPLE__) || defined (__OpenBSD__) || defined (__NetBSD__) 
23  #include <net/if.h>
24  #include <net/bpf.h>