libogre: fix musl

This commit is contained in:
Enno Boland 2018-04-17 09:28:38 +02:00
parent e13e98f98b
commit 9199c0ac1f
No known key found for this signature in database
GPG Key ID: D09964719BDE9971
2 changed files with 14 additions and 4 deletions

View File

@ -0,0 +1,14 @@
--- OgreMain/include/OgreString.h.orig 2018-04-17 09:04:05.425658306 +0200
+++ OgreMain/include/OgreString.h 2018-04-17 09:14:39.457143961 +0200
@@ -76,6 +76,11 @@ namespace __gnu_cxx
# define strtol_l(ptr, end, base, l) strtol(ptr, end, base)
#endif
+#if OGRE_PLATFORM == OGRE_PLATFORM_LINUX && !defined(__GLIBC__)
+# define strtoul_l(ptr, end, base, l) strtoul(ptr, end, base)
+# define strtol_l(ptr, end, base, l) strtol(ptr, end, base)
+#endif
+
// If compiling with make on macOS, these headers need to be included to get
// definitions of locale_t, strtod_l, etc...
// See: http://www.unix.com/man-page/osx/3/strtod_l/

View File

@ -24,10 +24,6 @@ make_build_target="all OgreDoc"
wrksrc=ogre-$version
CXXFLAGS="-fcheck-new -fno-delete-null-pointer-checks -fno-lifetime-dse"
case "$XBPS_TARGET_MACHINE" in
*-musl) broken="https://build.voidlinux.eu/builders/x86_64-musl_builder/builds/9369/steps/shell_3/logs/stdio"
esac
post_install() {
vmkdir /usr/share/doc