void-packages/srcpkgs/occt/patches/xlocale.patch
Piraty 1b4cc7c8d4 New package: occt-7.2.0p1
Closes #13404.

Signed-off-by: Enno Boland <gottox@voidlinux.eu>
2018-04-19 08:44:54 +02:00

19 lines
798 B
Diff

Description: fix xlocale.h include for glibc 2.26+ compat
This patch fixes compatibility with glibc 2.26+ due to xlocale.h removal.
Origin: vendor, https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=opencascade7
Author: Grey Christoforo
Bug: https://tracker.dev.opencascade.org/view.php?id=28971.
===================================================================
--- src/Standard/Standard_CLocaleSentry.hxx
+++ src/Standard/Standard_CLocaleSentry.hxx
@@ -37,7 +37,7 @@
#if defined(HAVE_XLOCALE_H) && !(defined(__GLIBC__) && (__GLIBC__ == 2 && __GLIBC_MINOR__ <= 24))
// xlocale.h is actually a non-standard header file; glibc 2.26 has removed it altogether (all definition comes from locale.h)
- #include <xlocale.h>
+ #include <X11/Xlocale.h>
#endif
#if !defined(__ANDROID__)