Cross-compile armv7l binaries for 32-bit Raspberry Pi's (#167)

Build arm binaries for 32-bit architecture.
Use patch based on https://github.com/curl/curl/pull/9054.
This commit is contained in:
Brett Jia
2023-07-17 03:37:06 -04:00
committed by GitHub
parent e987cd6646
commit 9303ce340f
4 changed files with 41 additions and 6 deletions

View File

@@ -2485,3 +2485,17 @@ index 5ff86c7f5..be26f91ea 100644
NV1(CURLOPT_TCP_NODELAY, 1),
NV1(CURLOPT_PROXY_SSL_VERIFYPEER, 1),
NV1(CURLOPT_PROXY_SSL_VERIFYHOST, 1),
diff --git a/lib/easy_lock.h b/lib/easy_lock.h
index 819f50ce8..1f54289ce 100644
--- a/lib/easy_lock.h
+++ b/lib/easy_lock.h
@@ -36,6 +36,9 @@
#elif defined (HAVE_ATOMIC)
#include <stdatomic.h>
+#if defined(HAVE_SCHED_YIELD)
+#include <sched.h>
+#endif
#define curl_simple_lock atomic_bool
#define CURL_SIMPLE_LOCK_INIT false