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 @@...@@ -148,7 +148,7 @@
148# endif148# endif
149// Feature macros for disabling pre ABI v1 features. All of these options149// Feature macros for disabling pre ABI v1 features. All of these options
150// are deprecated.150// are deprecated.
151# if defined(__FreeBSD__)151# if defined(__FreeBSD__) || defined(__DragonFly__)
152# define _LIBCPP_DEPRECATED_ABI_DISABLE_PAIR_TRIVIAL_COPY_CTOR152# define _LIBCPP_DEPRECATED_ABI_DISABLE_PAIR_TRIVIAL_COPY_CTOR
153# endif153# endif
154# endif154# endif
...@@ -726,11 +726,11 @@ _LIBCPP_BEGIN_NAMESPACE_STD _LIBCPP_END_NAMESPACE_STD...@@ -726,11 +726,11 @@ _LIBCPP_BEGIN_NAMESPACE_STD _LIBCPP_END_NAMESPACE_STD
726# endif // _LIBCPP_CXX03_LANG726# endif // _LIBCPP_CXX03_LANG
727727
728# if defined(__APPLE__) || defined(__FreeBSD__) || defined(_LIBCPP_MSVCRT_LIKE) || defined(__sun__) || \728# if defined(__APPLE__) || defined(__FreeBSD__) || defined(_LIBCPP_MSVCRT_LIKE) || defined(__sun__) || \
729 defined(__NetBSD__)729 defined(__NetBSD__) || defined(__DragonFly__)
730# define _LIBCPP_LOCALE__L_EXTENSIONS 1730# define _LIBCPP_LOCALE__L_EXTENSIONS 1
731# endif731# endif
732732
733# ifdef __FreeBSD__733# if defined(__FreeBSD__) || defined(__DragonFly__)
734# define _DECLARE_C99_LDBL_MATH 1734# define _DECLARE_C99_LDBL_MATH 1
735# endif735# endif
736736
...@@ -750,11 +750,11 @@ _LIBCPP_BEGIN_NAMESPACE_STD _LIBCPP_END_NAMESPACE_STD...@@ -750,11 +750,11 @@ _LIBCPP_BEGIN_NAMESPACE_STD _LIBCPP_END_NAMESPACE_STD
750# define _LIBCPP_HAS_NO_ALIGNED_ALLOCATION750# define _LIBCPP_HAS_NO_ALIGNED_ALLOCATION
751# endif751# endif
752752
753# if defined(__APPLE__) || defined(__FreeBSD__)753# if defined(__APPLE__) || defined(__FreeBSD__) || defined(__DragonFly__)
754# define _LIBCPP_HAS_DEFAULTRUNELOCALE754# define _LIBCPP_HAS_DEFAULTRUNELOCALE
755# endif755# endif
756756
757# if defined(__APPLE__) || defined(__FreeBSD__) || defined(__sun__)757# if defined(__APPLE__) || defined(__FreeBSD__) || defined(__sun__) || defined(__DragonFly__)
758# define _LIBCPP_WCTYPE_IS_MASK758# define _LIBCPP_WCTYPE_IS_MASK
759# endif759# endif
760760
...@@ -901,6 +901,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD _LIBCPP_END_NAMESPACE_STD...@@ -901,6 +901,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD _LIBCPP_END_NAMESPACE_STD
901901
902# if defined(__FreeBSD__) || \902# if defined(__FreeBSD__) || \
903 defined(__wasi__) || \903 defined(__wasi__) || \
904 defined(__DragonFly__) || \
904 defined(__NetBSD__) || \905 defined(__NetBSD__) || \
905 defined(__OpenBSD__) || \906 defined(__OpenBSD__) || \
906 defined(__NuttX__) || \907 defined(__NuttX__) || \
lib/libcxx/include/__locale+3-3
...@@ -33,7 +33,7 @@...@@ -33,7 +33,7 @@
33# include <__support/newlib/xlocale.h>33# include <__support/newlib/xlocale.h>
34#elif defined(__OpenBSD__)34#elif defined(__OpenBSD__)
35# include <__support/openbsd/xlocale.h>35# include <__support/openbsd/xlocale.h>
36#elif (defined(__APPLE__) || defined(__FreeBSD__))36#elif (defined(__APPLE__) || defined(__FreeBSD__) || defined(__DragonFly__))
37# include <xlocale.h>37# include <xlocale.h>
38#elif defined(__Fuchsia__)38#elif defined(__Fuchsia__)
39# include <__support/fuchsia/xlocale.h>39# include <__support/fuchsia/xlocale.h>
...@@ -453,10 +453,10 @@ public:...@@ -453,10 +453,10 @@ public:
453 static const mask __regex_word = 0x4000; // 0x8000 and 0x0100 and 0x00ff are used453 static const mask __regex_word = 0x4000; // 0x8000 and 0x0100 and 0x00ff are used
454# define _LIBCPP_CTYPE_MASK_IS_COMPOSITE_PRINT454# define _LIBCPP_CTYPE_MASK_IS_COMPOSITE_PRINT
455# define _LIBCPP_CTYPE_MASK_IS_COMPOSITE_ALPHA455# 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__)
457# ifdef __APPLE__457# ifdef __APPLE__
458 typedef __uint32_t mask;458 typedef __uint32_t mask;
459# elif defined(__FreeBSD__)459# elif defined(__FreeBSD__) || defined(__DragonFly__)
460 typedef unsigned long mask;460 typedef unsigned long mask;
461# elif defined(__EMSCRIPTEN__) || defined(__NetBSD__)461# elif defined(__EMSCRIPTEN__) || defined(__NetBSD__)
462 typedef unsigned short mask;462 typedef unsigned short mask;
lib/libcxx/include/locale+1-1
...@@ -239,7 +239,7 @@ _LIBCPP_PUSH_MACROS...@@ -239,7 +239,7 @@ _LIBCPP_PUSH_MACROS
239239
240_LIBCPP_BEGIN_NAMESPACE_STD240_LIBCPP_BEGIN_NAMESPACE_STD
241241
242#if defined(__APPLE__) || defined(__FreeBSD__)242#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__DragonFly__)
243# define _LIBCPP_GET_C_LOCALE 0243# define _LIBCPP_GET_C_LOCALE 0
244#elif defined(__NetBSD__)244#elif defined(__NetBSD__)
245# define _LIBCPP_GET_C_LOCALE LC_C_LOCALE245# define _LIBCPP_GET_C_LOCALE LC_C_LOCALE
lib/libcxx/src/locale.cpp+1-1
...@@ -1190,7 +1190,7 @@ ctype<char>::classic_table() noexcept...@@ -1190,7 +1190,7 @@ ctype<char>::classic_table() noexcept
1190const ctype<char>::mask*1190const ctype<char>::mask*
1191ctype<char>::classic_table() noexcept1191ctype<char>::classic_table() noexcept
1192{1192{
1193#if defined(__APPLE__) || defined(__FreeBSD__)1193#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__DragonFly__)
1194 return _DefaultRuneLocale.__runetype;1194 return _DefaultRuneLocale.__runetype;
1195#elif defined(__NetBSD__)1195#elif defined(__NetBSD__)
1196 return _C_ctype_tab_ + 1;1196 return _C_ctype_tab_ + 1;