summaryrefslogtreecommitdiffstats
path: root/lib/libcxx/include
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2019-12-08 13:50:09 +0000
committerjsg <jsg@openbsd.org>2019-12-08 13:50:09 +0000
commit627b1a1971258cead9166f054ebc6fb22f7cb24d (patch)
tree1c932035e1e57c982ec9543e707b98996d128595 /lib/libcxx/include
parentReduce the max. number of frame buffers so that we can run higher (diff)
downloadwireguard-openbsd-627b1a1971258cead9166f054ebc6fb22f7cb24d.tar.xz
wireguard-openbsd-627b1a1971258cead9166f054ebc6fb22f7cb24d.zip
define _LIBCPP_HAS_TIMESPEC_GET and _LIBCPP_HAS_C11_FEATURES
OpenBSD has timespec_get(3) and struct timespec/aligned_alloc(3). ok kettenis@ jca@
Diffstat (limited to 'lib/libcxx/include')
-rw-r--r--lib/libcxx/include/__config3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libcxx/include/__config b/lib/libcxx/include/__config
index 5295b77d4cf..7ec1d3de5d8 100644
--- a/lib/libcxx/include/__config
+++ b/lib/libcxx/include/__config
@@ -341,6 +341,9 @@
# if defined(__FreeBSD__)
# define _LIBCPP_HAS_QUICK_EXIT
# define _LIBCPP_HAS_C11_FEATURES
+# elif defined(__OpenBSD__)
+# define _LIBCPP_HAS_TIMESPEC_GET
+# define _LIBCPP_HAS_C11_FEATURES
# elif defined(__Fuchsia__)
# define _LIBCPP_HAS_QUICK_EXIT
# define _LIBCPP_HAS_TIMESPEC_GET