0002-remove-sys-sysctl.h.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. From 5382142d37730f6758753b758c91e257ffd5892c Mon Sep 17 00:00:00 2001
  2. From: Romain Naour <romain.naour@gmail.com>
  3. Date: Sun, 9 Apr 2017 22:20:19 +0200
  4. Subject: [PATCH] remove sys/sysctl.h
  5. With musl irrlicht doesn't build due to missing sys/sysctl.h
  6. fatal error: sys/sysctl.h: No such file or directory
  7. From [1]
  8. "sysctl does not work, and NEVER worked. using it is bogus.
  9. it was a bogus experimental syscall that was deprecated before
  10. it was ever used (basically, a broken binary version of
  11. /proc/sys, without any stability between kernel versions for
  12. what the binary constants meant)."
  13. [1] https://devsonacid.wordpress.com/tag/musl/
  14. Signed-off-by: Romain Naour <romain.naour@gmail.com>
  15. ---
  16. source/Irrlicht/COSOperator.cpp | 1 -
  17. 1 file changed, 1 deletion(-)
  18. diff --git a/source/Irrlicht/COSOperator.cpp b/source/Irrlicht/COSOperator.cpp
  19. index 0899d1d..ccf5ef5 100644
  20. --- a/source/Irrlicht/COSOperator.cpp
  21. +++ b/source/Irrlicht/COSOperator.cpp
  22. @@ -13,7 +13,6 @@
  23. #include <unistd.h>
  24. #ifndef _IRR_SOLARIS_PLATFORM_
  25. #include <sys/types.h>
  26. -#include <sys/sysctl.h>
  27. #endif
  28. #endif
  29. --
  30. 2.9.3