1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-10-16 08:32:06 +00:00
serenity/Ports/curl/patches/disable-nbio.patch
Gunnar Beutner 84ad8a51d3 Ports: Link curl against openssl and disable non-blocking I/O
For some reason curl complains that SSL_connect() fails when
non-blocking I/O is enabled. With blocking I/O it works just
fine though.
2021-04-12 22:44:49 +02:00

14 lines
480 B
Diff

diff -Naur curl-7.65.3/lib/nonblock.c curl-7.65.3.serenity/lib/nonblock.c
--- curl-7.65.3/lib/nonblock.c 2021-04-12 18:25:48.687757722 +0200
+++ curl-7.65.3.serenity/lib/nonblock.c 2021-04-12 18:22:32.390375039 +0200
@@ -39,6 +39,10 @@
#include "nonblock.h"
+#ifdef __serenity__
+#define USE_BLOCKING_SOCKETS
+#endif
+
/*
* curlx_nonblock() set the given socket to either blocking or non-blocking
* mode based on the 'nonblock' boolean argument. This function is highly