diff options
| author | Tobias Markus <tobbi.bugs@googlemail.com> | 2021-10-07 01:54:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-06 16:54:21 -0700 |
| commit | 5033b3e2e8c9235bc867ca09b68e8958e27dcaab (patch) | |
| tree | 3944fd00bac1846cf3ac317274d5e9c4bc486f64 /ports/boost-config/fix-emscripten-compilation.patch | |
| parent | 93f58dd43a01d4db216f8dab0c16143752fe85db (diff) | |
| download | vcpkg-5033b3e2e8c9235bc867ca09b68e8958e27dcaab.tar.gz vcpkg-5033b3e2e8c9235bc867ca09b68e8958e27dcaab.zip | |
Fix compilation on Emscripten / WebAssembly (#20551)
Diffstat (limited to 'ports/boost-config/fix-emscripten-compilation.patch')
| -rw-r--r-- | ports/boost-config/fix-emscripten-compilation.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/ports/boost-config/fix-emscripten-compilation.patch b/ports/boost-config/fix-emscripten-compilation.patch new file mode 100644 index 000000000..f85fa3c47 --- /dev/null +++ b/ports/boost-config/fix-emscripten-compilation.patch @@ -0,0 +1,31 @@ +From 85292621ece3409a80929add91c971400ba724f3 Mon Sep 17 00:00:00 2001 +From: jzmaddock <john@johnmaddock.co.uk> +Date: Fri, 10 Sep 2021 11:36:29 +0100 +Subject: [PATCH] Add emscripten testing and support. (#403) + +* Tentatively add emscripten testing and support. +Fixes https://github.com/boostorg/config/issues/402. +--- + include/boost/config/platform/wasm.hpp | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/include/boost/config/platform/wasm.hpp b/include/boost/config/platform/wasm.hpp +index c307812d..682b8485 100644 +--- a/include/boost/config/platform/wasm.hpp ++++ b/include/boost/config/platform/wasm.hpp +@@ -9,6 +9,12 @@ + + #define BOOST_PLATFORM "Wasm" + ++#ifdef __has_include ++#if __has_include(<unistd.h>) ++# define BOOST_HAS_UNISTD_H ++#endif ++#endif ++ + // boilerplate code: + #include <boost/config/detail/posix_features.hpp> + // +-- +2.21.1 (Apple Git-122.3) + |
