diff options
Diffstat (limited to '.patch')
| -rw-r--r-- | .patch/catch2/0001-solaris-isnan-fix.patch | 12 | ||||
| -rw-r--r-- | .patch/libusb/0001-netbsd-gettime.patch | 25 | ||||
| -rw-r--r-- | .patch/spirv-tools/0001-netbsd-fix.patch | 14 |
3 files changed, 51 insertions, 0 deletions
diff --git a/.patch/catch2/0001-solaris-isnan-fix.patch b/.patch/catch2/0001-solaris-isnan-fix.patch new file mode 100644 index 0000000000..498d6cd93e --- /dev/null +++ b/.patch/catch2/0001-solaris-isnan-fix.patch @@ -0,0 +1,12 @@ +diff --git a/src/catch2/matchers/catch_matchers_floating_point.cpp b/src/catch2/matchers/catch_matchers_floating_point.cpp +index fc7b444..0e1a3c2 100644 +--- a/src/catch2/matchers/catch_matchers_floating_point.cpp ++++ b/src/catch2/matchers/catch_matchers_floating_point.cpp +@@ -5,6 +5,7 @@ + // https://www.boost.org/LICENSE_1_0.txt) + + // SPDX-License-Identifier: BSL-1.0 ++#include <catch2/internal/catch_polyfills.hpp> + #include <catch2/matchers/catch_matchers_floating_point.hpp> + #include <catch2/internal/catch_enforce.hpp> + #include <catch2/internal/catch_polyfills.hpp> diff --git a/.patch/libusb/0001-netbsd-gettime.patch b/.patch/libusb/0001-netbsd-gettime.patch new file mode 100644 index 0000000000..8cfab9ea91 --- /dev/null +++ b/.patch/libusb/0001-netbsd-gettime.patch @@ -0,0 +1,25 @@ +diff --git a/libusb/os/netbsd_usb.c b/libusb/os/netbsd_usb.c +index a9a50b2..56e681b 100644 +--- a/libusb/os/netbsd_usb.c ++++ b/libusb/os/netbsd_usb.c +@@ -580,6 +580,20 @@ _access_endpoint(struct libusb_transfer *transfer) + return hpriv->endpoints[endpt]; + } + ++void usbi_get_monotonic_time(struct timespec *tp) { ++ struct timeval tv; ++ gettimeofday(&tv, NULL); ++ tp->tv_sec = tv.tv_sec; ++ tp->tv_nsec = tv.tv_usec * 1000ull; ++} ++ ++void usbi_get_real_time(struct timespec *tp) { ++ struct timeval tv; ++ gettimeofday(&tv, NULL); ++ tp->tv_sec = tv.tv_sec; ++ tp->tv_nsec = tv.tv_usec * 1000ull; ++} ++ + int + _sync_gen_transfer(struct usbi_transfer *itransfer) + { diff --git a/.patch/spirv-tools/0001-netbsd-fix.patch b/.patch/spirv-tools/0001-netbsd-fix.patch new file mode 100644 index 0000000000..e4b71f2938 --- /dev/null +++ b/.patch/spirv-tools/0001-netbsd-fix.patch @@ -0,0 +1,14 @@ +diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt +index eb4e69e..3155805 100644 +--- a/external/CMakeLists.txt ++++ b/external/CMakeLists.txt +@@ -72,7 +72,8 @@ if (SPIRV_TOOLS_USE_MIMALLOC) + pop_variable(MI_BUILD_TESTS) + endif() + +-if (DEFINED SPIRV-Headers_SOURCE_DIR) ++# NetBSD doesn't have SPIRV-Headers readily available on system ++if (DEFINED SPIRV-Headers_SOURCE_DIR AND NOT ${CMAKE_SYSTEM_NAME} STREQUAL "NetBSD") + # This allows flexible position of the SPIRV-Headers repo. + set(SPIRV_HEADER_DIR ${SPIRV-Headers_SOURCE_DIR}) + else() |
