irrlicht/remove-sysctl.h.patch
2021-06-26 16:24:57 +08:00

32 lines
1.1 KiB
Diff

From 5382142d37730f6758753b758c91e257ffd5892c Mon Sep 17 00:00:00 2001
From: Romain Naour <romain.naour@gmail.com>
Date: Sun, 9 Apr 2017 22:20:19 +0200
Subject: [PATCH] remove sys/sysctl.h
With musl irrlicht doesn't build due to missing sys/sysctl.h
fatal error: sys/sysctl.h: No such file or directory
From [1]
"sysctl does not work, and NEVER worked. using it is bogus.
it was a bogus experimental syscall that was deprecated before
it was ever used (basically, a broken binary version of
/proc/sys, without any stability between kernel versions for
what the binary constants meant)."
[1] https://devsonacid.wordpress.com/tag/musl/
Signed-off-by: Romain Naour <romain.naour@gmail.com>
diff -ruN irrlicht-1.8.4-bak/source/Irrlicht/COSOperator.cpp irrlicht-1.8.4/source/Irrlicht/COSOperator.cpp
--- irrlicht-1.8.4-bak/source/Irrlicht/COSOperator.cpp 2012-11-04 02:07:52.000000000 +0800
+++ irrlicht-1.8.4/source/Irrlicht/COSOperator.cpp 2021-06-26 15:26:03.935312943 +0800
@@ -13,7 +13,6 @@
#include <unistd.h>
#ifndef _IRR_SOLARIS_PLATFORM_
#include <sys/types.h>
-#include <sys/sysctl.h>
#endif
#endif