diff options
author | Remi Collet <remi@remirepo.net> | 2025-01-23 08:05:42 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2025-01-23 08:05:42 +0100 |
commit | 0a179ccabbb6978e2e077ad0bcca080ffdf16e0e (patch) | |
tree | 4489d06c09dcf8515b46dab96cdd50eb0269e76c /0001-fix-incompatible-pointer-type.patch | |
parent | 7f67ab6133bac86aeb7d6dde95412a9eb30ff173 (diff) |
using patch from https://github.com/m6w6/ext-http/pull/143
re-license spec file to CECILL-2.1
fix incompatible pointer type FTBFS #2341063
using patch from https://github.com/m6w6/ext-http/pull/143
re-license spec file to CECILL-2.1
Diffstat (limited to '0001-fix-incompatible-pointer-type.patch')
-rw-r--r-- | 0001-fix-incompatible-pointer-type.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/0001-fix-incompatible-pointer-type.patch b/0001-fix-incompatible-pointer-type.patch new file mode 100644 index 0000000..f10cbb2 --- /dev/null +++ b/0001-fix-incompatible-pointer-type.patch @@ -0,0 +1,39 @@ +From aa9b18e49f2c4e9033e6f32bc6af9cb11c44d332 Mon Sep 17 00:00:00 2001 +From: Remi Collet <remi@remirepo.net> +Date: Thu, 23 Jan 2025 07:41:55 +0100 +Subject: [PATCH] fix incompatible pointer type + +--- + src/php_http_client_curl.h | 2 +- + src/php_http_client_curl_event.c | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/php_http_client_curl.h b/src/php_http_client_curl.h +index 61723b9..42feff7 100644 +--- a/src/php_http_client_curl.h ++++ b/src/php_http_client_curl.h +@@ -25,7 +25,7 @@ typedef struct php_http_client_curl_handle { + } php_http_client_curl_handle_t; + + typedef struct php_http_client_curl_ops { +- void *(*init)(); ++ void *(*init)(php_http_client_t *client, void *user_data); + void (*dtor)(void **ctx_ptr); + ZEND_RESULT_CODE (*once)(void *ctx); + ZEND_RESULT_CODE (*wait)(void *ctx, struct timeval *custom_timeout); +diff --git a/src/php_http_client_curl_event.c b/src/php_http_client_curl_event.c +index 2e663ed..b532e11 100644 +--- a/src/php_http_client_curl_event.c ++++ b/src/php_http_client_curl_event.c +@@ -242,7 +242,7 @@ static ZEND_RESULT_CODE php_http_client_curl_event_exec(void *context) + return SUCCESS; + } + +-static void *php_http_client_curl_event_init(php_http_client_t *client) ++static void *php_http_client_curl_event_init(php_http_client_t *client, void *user_data) + { + php_http_client_curl_t *curl = client->ctx; + php_http_client_curl_event_context_t *ctx; +-- +2.48.1 + |