-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix ../../git/src/webrequest.cpp:15:10: fatal error: sys/unistd.h: No such file patch sent upstream Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
- Loading branch information
1 parent
81bd682
commit 76b525c
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
meta-openpli/recipes-openpli/streamproxy/files/0001-streamproxy-fix-build-with-musl.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
From bb7800494d834f517c0d97768ef3cc1d2521d4eb Mon Sep 17 00:00:00 2001 | ||
From: Andrea Adami <andrea.adami@gmail.com> | ||
Date: Tue, 15 Jun 2021 01:41:13 +0200 | ||
Subject: [PATCH 1/1] streamproxy: fix build with musl | ||
|
||
fix | ||
| ../../git/src/webrequest.cpp:15:10: fatal error: sys/unistd.h: | ||
No such file or directory | ||
| 15 | #include <sys/unistd.h> | ||
|
||
Signed-off-by: Andrea Adami <andrea.adami@gmail.com> | ||
--- | ||
src/webrequest.cpp | 4 ++++ | ||
1 file changed, 4 insertions(+) | ||
|
||
diff --git a/src/webrequest.cpp b/src/webrequest.cpp | ||
index ce20a45..02e0f24 100644 | ||
--- a/src/webrequest.cpp | ||
+++ b/src/webrequest.cpp | ||
@@ -12,7 +12,11 @@ using std::string; | ||
#include <string.h> | ||
#include <sys/types.h> | ||
#include <sys/stat.h> | ||
+#ifdef __GLIBC__ | ||
#include <sys/unistd.h> | ||
+#else | ||
+#include <unistd.h> | ||
+#endif | ||
#include <string.h> | ||
|
||
WebRequest::WebRequest(const ConfigMap &config_map_in, const HeaderMap &headers_in, | ||
-- | ||
2.17.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters