freebsd-ports/devel/libc++/files/patch-src_locale.cpp
John Marino a458ada59d devel/libc++: Mainly fix DragonFly support.
This port was originally fixed in dports using alias:10 but this fix
was faulty.  The libc++ headers reference __FreeBSD__ so alias won't
work.  It needs to be patched to check __DragonFly__, including a file
that was the subject of EXTRA_PATCHES.

Moreover, the port was installing the .orig files left over from
patching.  I remove these in post-patch now.
2015-04-04 00:22:57 +00:00

11 lines
423 B
C++

--- src/locale.cpp.orig 2014-01-04 17:43:00 UTC
+++ src/locale.cpp
@@ -1021,7 +1021,7 @@ extern "C" const int ** __ctype_toupper_
const ctype<char>::mask*
ctype<char>::classic_table() _NOEXCEPT
{
-#if defined(__APPLE__) || defined(__FreeBSD__)
+#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__DragonFly__)
return _DefaultRuneLocale.__runetype;
#elif defined(__NetBSD__)
return _C_ctype_tab_ + 1;