100-fix-sysinfo-redeclaration.patch 468 B

123456789101112131415161718192021222324
  1. --- a/src/system.h
  2. +++ b/src/system.h
  3. @@ -83,10 +83,6 @@
  4. #include <linux/sysinfo.h>
  5. #endif
  6. -#ifdef HAVE_SYS_SYSINFO_H
  7. -#include <sys/sysinfo.h>
  8. -#endif
  9. -
  10. #ifdef HAVE_TIME_H
  11. #include <time.h>
  12. #endif
  13. @@ -139,6 +135,10 @@
  14. #include <linux/un.h>
  15. #endif
  16. +#ifdef HAVE_SYS_SYSINFO_H
  17. +#include <sys/sysinfo.h>
  18. +#endif
  19. +
  20. #elif defined (__FreeBSD__) || defined (__APPLE__) || defined (__OpenBSD__) || defined (__NetBSD__)
  21. #include <net/if.h>
  22. #include <net/bpf.h>