You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
615 B

  1. --- a/src/system.h
  2. +++ b/src/system.h
  3. @@ -112,6 +112,11 @@
  4. #include <signal.h>
  5. #endif
  6. +#ifdef HAVE_SYS_SYSINFO_H
  7. +#define _LINUX_SYSINFO_H
  8. +#include <sys/sysinfo.h>
  9. +#endif
  10. +
  11. #ifdef HAVE_INTTYPES_H
  12. #define __STDC_FORMAT_MACROS
  13. #include <inttypes.h>
  14. @@ -129,15 +134,6 @@
  15. #include <linux/un.h>
  16. #endif
  17. -#ifdef HAVE_SYS_SYSINFO_H
  18. -#include <sys/sysinfo.h>
  19. -#else
  20. -#ifdef HAVE_LINUX_SYSINFO_H
  21. -#define _LINUX_KERNEL_H
  22. -#include <linux/sysinfo.h>
  23. -#endif
  24. -#endif
  25. -
  26. #elif defined (__FreeBSD__) || defined (__APPLE__) || defined (__OpenBSD__) || defined (__NetBSD__)
  27. #include <net/if.h>
  28. #include <net/bpf.h>