1 --- src/3rdparty/chromium/v8/include/v8config.h.orig	2025-08-15 18:30:00 UTC
2 +++ src/3rdparty/chromium/v8/include/v8config.h
3 @@ -201,6 +201,8 @@ path. Add it with -I<path> to the command line
4    && !defined(V8_TARGET_OS_FUCHSIA) \
5    && !defined(V8_TARGET_OS_IOS) \
6    && !defined(V8_TARGET_OS_LINUX) \
7 +  && !defined(V8_TARGET_OS_OPENBSD) \
8 +  && !defined(V8_TARGET_OS_FREEBSD) \
9    && !defined(V8_TARGET_OS_MACOS) \
10    && !defined(V8_TARGET_OS_WIN) \
11    && !defined(V8_TARGET_OS_CHROMEOS)
12 @@ -213,6 +215,8 @@ path. Add it with -I<path> to the command line
13    || defined(V8_TARGET_OS_FUCHSIA) \
14    || defined(V8_TARGET_OS_IOS) \
15    || defined(V8_TARGET_OS_LINUX) \
16 +  || defined(V8_TARGET_OS_OPENBSD) \
17 +  || defined(V8_TARGET_OS_FREEBSD) \
18    || defined(V8_TARGET_OS_MACOS) \
19    || defined(V8_TARGET_OS_WIN) \
20    || defined(V8_TARGET_OS_CHROMEOS)
21 @@ -236,6 +240,16 @@ path. Add it with -I<path> to the command line
22  # define V8_TARGET_OS_LINUX
23  #endif
24 
25 +#ifdef V8_OS_OPENBSD
26 +# define V8_TARGET_OS_OPENBSD
27 +# define V8_TARGET_OS_BSD
28 +#endif
29 +
30 +#ifdef V8_OS_FREEBSD
31 +# define V8_TARGET_OS_OPENBSD
32 +# define V8_TARGET_OS_BSD
33 +#endif
34 +
35  #ifdef V8_OS_MACOS
36  # define V8_TARGET_OS_MACOS
37  #endif
38 @@ -382,6 +396,7 @@ path. Add it with -I<path> to the command line
39  #if (defined(_M_X64) || defined(__x86_64__)            /* x64 (everywhere) */  \
40       || ((defined(__AARCH64EL__) || defined(_M_ARM64)) /* arm64, but ... */    \
41           && !defined(_WIN32)))                         /* not on windows */    \
42 +     && !defined(__OpenBSD__)                          /* not on OpenBSD */    \
43       && !defined(COMPONENT_BUILD)                      /* no component build */\
44       && __clang_major__ >= 17                          /* clang >= 17 */
45  # define V8_HAS_ATTRIBUTE_PRESERVE_MOST (__has_attribute(preserve_most))
46