diff --git a/graphics/openshadinglanguage/files/patch-src_liboslquery_py__osl.h b/graphics/openshadinglanguage/files/patch-src_liboslquery_py__osl.h new file mode 100644 index 000000000000..be1a19d203b8 --- /dev/null +++ b/graphics/openshadinglanguage/files/patch-src_liboslquery_py__osl.h @@ -0,0 +1,16 @@ +--- src/liboslquery/py_osl.h.orig 2022-01-08 02:36:45 UTC ++++ src/liboslquery/py_osl.h +@@ -31,6 +31,13 @@ + # include + #endif + ++#if PY_VERSION_HEX >= 0x030b00a6 ++ #ifndef Py_BUILD_CORE ++ #define Py_BUILD_CORE 1 ++ #endif ++ #include "internal/pycore_frame.h" ++#endif ++ + #include + #include + #include