summaryrefslogtreecommitdiff
path: root/Ports/cmake/patches/0005-cmcurl-Include-unistd.patch
blob: cc4bad1b96823bc44de0c46081bf0f7d1ec64368 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From ac1f5e51b8069e98a593a0f5ad25fdcd0328eca8 Mon Sep 17 00:00:00 2001
From: Ali Mohammad Pur <ali.mpfard@gmail.com>
Date: Wed, 12 Jan 2022 22:18:02 +0330
Subject: [PATCH 5/7] cmcurl: Include unistd

Everyone gets this wrong. most platforms are very lax with these includes, but we're not one of them.

- [X] Local?
- [ ] Should be merged to upstream?
- [ ] Resolves issue(s) with our side of things
- [ ] Hack
---
 Utilities/cmcurl/include/curl/multi.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Utilities/cmcurl/include/curl/multi.h b/Utilities/cmcurl/include/curl/multi.h
index 37f9829b..4a2b94fa 100644
--- a/Utilities/cmcurl/include/curl/multi.h
+++ b/Utilities/cmcurl/include/curl/multi.h
@@ -47,6 +47,7 @@
  * but with this warning attached.
  */
 #include "curl.h"
+#include <unistd.h>
 
 #ifdef  __cplusplus
 extern "C" {
-- 
2.34.1