quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

commit 8620a44ac638c9affe4dfd840e4e0f5010b64b7f
parent 9f4d211688577e39e8dd432da4119ab1b3ea63b3
Author: Florian Dold <florian@dold.me>
Date:   Tue, 23 Jan 2024 14:55:12 +0100

curl: configure HAVE_GETPEERNAME

Not setting this breaks connection reuse with async DNS

Diffstat:
Msubprojects/curl/meson.build | 22+++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)

diff --git a/subprojects/curl/meson.build b/subprojects/curl/meson.build @@ -80,10 +80,30 @@ add_project_arguments('-DHAVE_RECV', language : 'c') add_project_arguments('-DHAVE_SEND', language : 'c') add_project_arguments('-DHAVE_LONGLONG', language : 'c') -if c_compiler.has_function('gethostbyname', prefix : '#include <netdb.h>') +if c_compiler.has_function('exit') + add_project_arguments('-DHAVE_EXIT', language : 'c') +endif + +if c_compiler.has_function('gethostbyname') add_project_arguments('-DHAVE_GETHOSTBYNAME', language : 'c') endif +if c_compiler.has_function('signal') + add_project_arguments('-DHAVE_SIGNAL', language : 'c') +endif + +if c_compiler.has_function('pipe') + add_project_arguments('-DHAVE_PIPE', language : 'c') +endif + +if c_compiler.has_function('getpeername') + add_project_arguments('-DHAVE_GETPEERNAME', language : 'c') +endif + +if c_compiler.has_function('getsockname') + add_project_arguments('-DHAVE_GETSOCKNAME', language : 'c') +endif + # FIXME: test for this! add_project_arguments('-DHAVE_FCNTL_O_NONBLOCK', language : 'c') add_project_arguments('-DHAVE_SELECT', language : 'c')