$NetBSD: patch-deps_filesystem_filesystem.hpp,v 1.1 2023/05/19 10:37:20 adam Exp $ Disable use of experimental compiler features. Failed with GCC 7.4.0 on NetBSD. --- deps/filesystem/filesystem.hpp.orig 2023-03-06 19:17:40.000000000 +0000 +++ deps/filesystem/filesystem.hpp @@ -71,6 +71,7 @@ #define GHC_OS_SOLARIS #elif defined(__svr4__) #define GHC_OS_SYS5R4 +#define GHC_NO_DIRENT_D_TYPE #elif defined(BSD) #define GHC_OS_BSD #elif defined(__EMSCRIPTEN__) @@ -241,6 +242,7 @@ #define GHC_HAS_STD_STRING_VIEW #endif +#if 0 // pkgsrc // Standard library support for std::experimental::string_view. #if defined(_LIBCPP_VERSION) && (_LIBCPP_VERSION >= 3700 && _LIBCPP_VERSION < 7000) && (__cplusplus >= 201402) #define GHC_HAS_STD_EXPERIMENTAL_STRING_VIEW @@ -250,6 +252,7 @@ // macro _GLIBCXX_USE_DUAL_ABI is always defined in libstdc++ from gcc-5 and newer #define GHC_HAS_STD_EXPERIMENTAL_STRING_VIEW #endif +#endif #if defined(GHC_HAS_STD_STRING_VIEW) #include