--- deps/v8/include/v8config.h.orig	Sat Jan  1 17:10:10 2022
+++ deps/v8/include/v8config.h	Sat Jan  1 17:10:10 2022
@@ -181,6 +181,7 @@ path. Add it with -I<path> to the command line
   && !defined(V8_TARGET_OS_FUCHSIA) \
   && !defined(V8_TARGET_OS_IOS) \
   && !defined(V8_TARGET_OS_LINUX) \
+  && !defined(V8_TARGET_OS_OPENBSD) \
   && !defined(V8_TARGET_OS_MACOSX) \
   && !defined(V8_TARGET_OS_WIN)
 #  error No known target OS defined.
@@ -192,6 +193,7 @@ path. Add it with -I<path> to the command line
   || defined(V8_TARGET_OS_FUCHSIA) \
   || defined(V8_TARGET_OS_IOS) \
   || defined(V8_TARGET_OS_LINUX) \
+  || defined(V8_TARGET_OS_OPENBSD) \
   || defined(V8_TARGET_OS_MACOSX) \
   || defined(V8_TARGET_OS_WIN)
 #  error A target OS is defined but V8_HAVE_TARGET_OS is unset.
@@ -212,6 +214,10 @@ path. Add it with -I<path> to the command line
 
 #ifdef V8_OS_LINUX
 # define V8_TARGET_OS_LINUX
+#endif
+
+#ifdef V8_OS_OPENBSD
+# define V8_TARGET_OS_OPENBSD
 #endif
 
 #ifdef V8_OS_MACOSX
