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.

25 lines
747 B

  1. From 196b783b5ea7f8d6cf57ddbd41dc1881ef47a1c4 Mon Sep 17 00:00:00 2001
  2. From: Rosen Penev <rosenp@gmail.com>
  3. Date: Wed, 11 Dec 2019 19:33:58 -0800
  4. Subject: [PATCH] system.h: Fix compilation with kernel 4.19 + musl
  5. <linux/netlink.h> includes <linux/sysinfo.h> , which redefines struct sysinfo, leading to an error.
  6. Define the linux header as included to solve compilation.
  7. Signed-off-by: Rosen Penev <rosenp@gmail.com>
  8. ---
  9. src/system.h | 1 +
  10. 1 file changed, 1 insertion(+)
  11. diff --git a/src/system.h b/src/system.h
  12. index 257b65b..5c1aa4a 100644
  13. --- a/src/system.h
  14. +++ b/src/system.h
  15. @@ -114,6 +114,7 @@
  16. #ifdef HAVE_SYS_SYSINFO_H
  17. #include <sys/sysinfo.h>
  18. +#define _LINUX_SYSINFO_H
  19. #else
  20. #ifdef HAVE_LINUX_SYSINFO_H
  21. #define _LINUX_KERNEL_H