authorgravatar for michael.dusan@gmail.comMichael Dusan <michael.dusan@gmail.com> 2023-01-02 19:18:33-05:00
committergravatar for michael.dusan@gmail.comMichael Dusan <michael.dusan@gmail.com> 2023-01-02 19:18:33-05:00
log1a403383c9d8c6d3aacae16162f72d911350fd17
treea48600f630900f6ff77f13491c4919ab6b759198
parent7da9348637f82ca75e1100a2fce2d368f96b589f
signaturelock-open Commit is signed but in an unrecognized format.

dragonfly: port libc++

- https://github.com/DragonFlyBSD/DPorts/tree/master/devel/libc++/files for hints as to which patches are needed

4 files changed, 11 insertions(+), 10 deletions(-)

lib/libcxx/include/__config+6-5
......@@ -148,7 +148,7 @@
148148# endif
149149// Feature macros for disabling pre ABI v1 features. All of these options
150150// are deprecated.
151# if defined(__FreeBSD__)
151# if defined(__FreeBSD__) || defined(__DragonFly__)
152152# define _LIBCPP_DEPRECATED_ABI_DISABLE_PAIR_TRIVIAL_COPY_CTOR
153153# endif
154154# endif
......@@ -726,11 +726,11 @@ _LIBCPP_BEGIN_NAMESPACE_STD _LIBCPP_END_NAMESPACE_STD
726726# endif // _LIBCPP_CXX03_LANG
727727
728728# if defined(__APPLE__) || defined(__FreeBSD__) || defined(_LIBCPP_MSVCRT_LIKE) || defined(__sun__) || \
729 defined(__NetBSD__)
729 defined(__NetBSD__) || defined(__DragonFly__)
730730# define _LIBCPP_LOCALE__L_EXTENSIONS 1
731731# endif
732732
733# ifdef __FreeBSD__
733# if defined(__FreeBSD__) || defined(__DragonFly__)
734734# define _DECLARE_C99_LDBL_MATH 1
735735# endif
736736
......@@ -750,11 +750,11 @@ _LIBCPP_BEGIN_NAMESPACE_STD _LIBCPP_END_NAMESPACE_STD
750750# define _LIBCPP_HAS_NO_ALIGNED_ALLOCATION
751751# endif
752752
753# if defined(__APPLE__) || defined(__FreeBSD__)
753# if defined(__APPLE__) || defined(__FreeBSD__) || defined(__DragonFly__)
754754# define _LIBCPP_HAS_DEFAULTRUNELOCALE
755755# endif
756756
757# if defined(__APPLE__) || defined(__FreeBSD__) || defined(__sun__)
757# if defined(__APPLE__) || defined(__FreeBSD__) || defined(__sun__) || defined(__DragonFly__)
758758# define _LIBCPP_WCTYPE_IS_MASK
759759# endif
760760
......@@ -901,6 +901,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD _LIBCPP_END_NAMESPACE_STD
901901
902902# if defined(__FreeBSD__) || \
903903 defined(__wasi__) || \
904 defined(__DragonFly__) || \
904905 defined(__NetBSD__) || \
905906 defined(__OpenBSD__) || \
906907 defined(__NuttX__) || \
lib/libcxx/include/__locale+3-3
......@@ -33,7 +33,7 @@
3333# include <__support/newlib/xlocale.h>
3434#elif defined(__OpenBSD__)
3535# include <__support/openbsd/xlocale.h>
36#elif (defined(__APPLE__) || defined(__FreeBSD__))
36#elif (defined(__APPLE__) || defined(__FreeBSD__) || defined(__DragonFly__))
3737# include <xlocale.h>
3838#elif defined(__Fuchsia__)
3939# include <__support/fuchsia/xlocale.h>
......@@ -453,10 +453,10 @@ public:
453453 static const mask __regex_word = 0x4000; // 0x8000 and 0x0100 and 0x00ff are used
454454# define _LIBCPP_CTYPE_MASK_IS_COMPOSITE_PRINT
455455# define _LIBCPP_CTYPE_MASK_IS_COMPOSITE_ALPHA
456#elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__EMSCRIPTEN__) || defined(__NetBSD__)
456#elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__EMSCRIPTEN__) || defined(__NetBSD__) || defined(__DragonFly__)
457457# ifdef __APPLE__
458458 typedef __uint32_t mask;
459# elif defined(__FreeBSD__)
459# elif defined(__FreeBSD__) || defined(__DragonFly__)
460460 typedef unsigned long mask;
461461# elif defined(__EMSCRIPTEN__) || defined(__NetBSD__)
462462 typedef unsigned short mask;
lib/libcxx/include/locale+1-1
......@@ -239,7 +239,7 @@ _LIBCPP_PUSH_MACROS
239239
240240_LIBCPP_BEGIN_NAMESPACE_STD
241241
242#if defined(__APPLE__) || defined(__FreeBSD__)
242#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__DragonFly__)
243243# define _LIBCPP_GET_C_LOCALE 0
244244#elif defined(__NetBSD__)
245245# define _LIBCPP_GET_C_LOCALE LC_C_LOCALE
lib/libcxx/src/locale.cpp+1-1
......@@ -1190,7 +1190,7 @@ ctype<char>::classic_table() noexcept
11901190const ctype<char>::mask*
11911191ctype<char>::classic_table() noexcept
11921192{
1193#if defined(__APPLE__) || defined(__FreeBSD__)
1193#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__DragonFly__)
11941194 return _DefaultRuneLocale.__runetype;
11951195#elif defined(__NetBSD__)
11961196 return _C_ctype_tab_ + 1;