From ef16365a3b67219c59210f3c17a975d899c293d4 Mon Sep 17 00:00:00 2001 From: Keenan Brock Date: Wed, 11 Sep 2024 17:55:20 -0400 Subject: [PATCH] declare ruby_thread_has_gvl_p This can be found https://github.com/ruby/ruby/blob/5d358b660d41e64de301f428dc0300a52a6f9566/internal/thread.h#L77 All users of this method seem to just declare the method up front, as access to ruby's internal headers are discouraged Signed-off-by: Keenan Brock --- sdk/ext/ovirtsdk4c/ov_http_client.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sdk/ext/ovirtsdk4c/ov_http_client.c b/sdk/ext/ovirtsdk4c/ov_http_client.c index f71ecd7..2e50fd0 100644 --- a/sdk/ext/ovirtsdk4c/ov_http_client.c +++ b/sdk/ext/ovirtsdk4c/ov_http_client.c @@ -34,6 +34,9 @@ limitations under the License. #include "ov_http_response.h" #include "ov_http_transfer.h" +/* thread.c (export) */ +extern int ruby_thread_has_gvl_p(void); + /* Class: */ VALUE ov_http_client_class;