diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/skia/fix-bsd.patch | |
Diffstat (limited to 'vcpkg/ports/skia/fix-bsd.patch')
| -rw-r--r-- | vcpkg/ports/skia/fix-bsd.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/vcpkg/ports/skia/fix-bsd.patch b/vcpkg/ports/skia/fix-bsd.patch new file mode 100644 index 0000000..56d82a7 --- /dev/null +++ b/vcpkg/ports/skia/fix-bsd.patch @@ -0,0 +1,48 @@ +diff --git a/src/gpu/ganesh/GrAutoLocaleSetter.h b/src/gpu/ganesh/GrAutoLocaleSetter.h +index 13a2ab37f9..96968f6779 100644 +--- a/src/gpu/ganesh/GrAutoLocaleSetter.h ++++ b/src/gpu/ganesh/GrAutoLocaleSetter.h +@@ -27,7 +27,7 @@ + #define HAVE_XLOCALE 0 + #endif + +-#if defined(SK_BUILD_FOR_ANDROID) || defined(__UCLIBC__) || defined(_NEWLIB_VERSION) ++#if defined(SK_BUILD_FOR_ANDROID) || defined(__UCLIBC__) || defined(_NEWLIB_VERSION) || defined(__NetBSD__) + #define HAVE_LOCALE_T 0 + #else + #define HAVE_LOCALE_T 1 +diff --git a/src/ports/SkMemory_malloc.cpp b/src/ports/SkMemory_malloc.cpp +index d784af53ef..8bb21406dd 100644 +--- a/src/ports/SkMemory_malloc.cpp ++++ b/src/ports/SkMemory_malloc.cpp +@@ -15,7 +15,7 @@ + + #if defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS) + #include <malloc/malloc.h> +-#elif defined(SK_BUILD_FOR_ANDROID) || defined(SK_BUILD_FOR_UNIX) ++#elif defined(SK_BUILD_FOR_ANDROID) || defined(SK_BUILD_FOR_UNIX) && !defined(__OpenBSD__) && !defined(__NetBSD__) + #include <malloc.h> + #elif defined(SK_BUILD_FOR_WIN) + #include <malloc.h> +@@ -126,7 +126,7 @@ size_t sk_malloc_size(void* addr, size_t size) { + #elif defined(SK_BUILD_FOR_ANDROID) && __ANDROID_API__ >= 17 + completeSize = malloc_usable_size(addr); + SkASSERT(completeSize >= size); +- #elif defined(SK_BUILD_FOR_UNIX) ++ #elif defined(SK_BUILD_FOR_UNIX) && !defined(__OpenBSD__) && !defined(__NetBSD__) + completeSize = malloc_usable_size(addr); + SkASSERT(completeSize >= size); + #elif defined(SK_BUILD_FOR_WIN) +diff --git a/src/ports/SkOSFile_posix.cpp b/src/ports/SkOSFile_posix.cpp +index 1be1330790..8af0a6d6a7 100644 +--- a/src/ports/SkOSFile_posix.cpp ++++ b/src/ports/SkOSFile_posix.cpp +@@ -25,7 +25,7 @@ + #endif + + void sk_fsync(FILE* f) { +-#if !defined(SK_BUILD_FOR_ANDROID) && !defined(__UCLIBC__) && !defined(_NEWLIB_VERSION) ++#if !defined(SK_BUILD_FOR_ANDROID) && !defined(__UCLIBC__) && !defined(_NEWLIB_VERSION) && !defined(__OpenBSD__) + int fd = fileno(f); + fsync(fd); + #endif |