blob: b6f99b0e8dcd1ff9d862be14f7fb4ec03768cf8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
$NetBSD: patch-filesystem_filesystem.hpp,v 1.3 2022/05/23 13:08:02 micha Exp $
Disable use of experimental compiler features.
Failed with GCC 7.4.0 on NetBSD.
--- filesystem/filesystem.hpp.orig 2021-05-24 09:14:03.505674000 +0000
+++ filesystem/filesystem.hpp
@@ -72,6 +72,7 @@
#define GHC_OS_CYGWIN
#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 <string_view>
|