lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

100-fix-sysinfo-redeclaration.patch (468B)


      1 --- a/src/system.h
      2 +++ b/src/system.h
      3 @@ -83,10 +83,6 @@
      4  #include <linux/sysinfo.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 @@ -139,6 +135,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>