aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2021-03-29 19:48:47 +0200
committerRobby Workman <rworkman@slackbuilds.org>2021-04-17 23:31:01 -0500
commit803ae2a4bf0ffbfecf802d2169297108652b3f9a (patch)
treec3ccd1ffdc2a21af87a11449a9415d03428c587a
parent08f5bb5962a9e5de1b2d0b3a0653d559a88b5e4f (diff)
libraries/irrlicht: Remove a sysctl.h include.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r--libraries/irrlicht/irrlicht.SlackBuild3
1 files changed, 3 insertions, 0 deletions
diff --git a/libraries/irrlicht/irrlicht.SlackBuild b/libraries/irrlicht/irrlicht.SlackBuild
index 71e740ad18cc0..a81e0d8940ff7 100644
--- a/libraries/irrlicht/irrlicht.SlackBuild
+++ b/libraries/irrlicht/irrlicht.SlackBuild
@@ -72,6 +72,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# https://github.com/analogdevicesinc/buildroot/blob/master/package/irrlicht/0002-remove-sys-sysctl.h.patch
+sed -i '/sysctl\.h/d' source/Irrlicht/COSOperator.cpp
+
# Set maximum number of textures.
sed -i '/_IRR_MATERIAL_MAX_TEXTURES_/s|4|8|' include/IrrCompileConfig.h