freebsd-ports/devel/libc++/files/patch-include_locale
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
388 B
Text

--- include/locale.orig 2014-02-07 21:14:29 UTC
+++ include/locale
@@ -209,7 +209,7 @@ template <class charT> class messages_by
_LIBCPP_BEGIN_NAMESPACE_STD
-#if defined(__APPLE__) || defined(__FreeBSD__)
+#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__DragonFly__)
# define _LIBCPP_GET_C_LOCALE 0
#elif defined(__NetBSD__)
# define _LIBCPP_GET_C_LOCALE LC_C_LOCALE