diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2018-06-28 15:39:47 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-06-29 11:07:44 +0100 |
commit | 4d412d63b2d12018a0473eaef21efc9a6213315b (patch) | |
tree | b186e8ae81779940ffdc60a9d15cfa88dcd799dc /meta/recipes-support/libbsd/libbsd/0001-flopen-Add-missing-fcntl.h-include.patch | |
parent | 65da09ad88b5307fc53f089318ffeec21bc934bc (diff) | |
download | poky-4d412d63b2d12018a0473eaef21efc9a6213315b.tar.gz |
libbsd: update to 0.9.1
License-Update: update COPYING file format
Drop 0001-Replace-__BEGIN_DECLS-and-__END_DECLS.patch and
0002-Remove-funopen.patch since they are already fixed upstream.
Backport 0001-flopen-Add-missing-fcntl.h-include.patch to fix build with
musl.
(From OE-Core rev: 62981e79de16a2352744c4b275f0549b1dafd17a)
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/libbsd/libbsd/0001-flopen-Add-missing-fcntl.h-include.patch')
-rw-r--r-- | meta/recipes-support/libbsd/libbsd/0001-flopen-Add-missing-fcntl.h-include.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/meta/recipes-support/libbsd/libbsd/0001-flopen-Add-missing-fcntl.h-include.patch b/meta/recipes-support/libbsd/libbsd/0001-flopen-Add-missing-fcntl.h-include.patch new file mode 100644 index 0000000000..8abb876c7b --- /dev/null +++ b/meta/recipes-support/libbsd/libbsd/0001-flopen-Add-missing-fcntl.h-include.patch | |||
@@ -0,0 +1,46 @@ | |||
1 | From 13c32916b4baab58d93940d57fea9ff0777f1931 Mon Sep 17 00:00:00 2001 | ||
2 | From: Baruch Siach <baruch@tkos.co.il> | ||
3 | Date: Tue, 5 Jun 2018 19:21:46 +0300 | ||
4 | Subject: [PATCH] flopen: Add missing <fcntl.h> include | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | Commit 993828d84ee (Add flopenat() function from FreeBSD) dropped the | ||
10 | fcntl.h header. This breaks the build with musl libc: | ||
11 | |||
12 | flopen.c: In function ‘vflopenat’: | ||
13 | flopen.c:60:14: error: ‘O_CREAT’ undeclared (first use in this function) | ||
14 | if (flags & O_CREAT) { | ||
15 | ^~~~~~~ | ||
16 | |||
17 | Restore the fcntl.h header include to fix the build. | ||
18 | |||
19 | Fixes: commit 993828d84eed0468c6c15b2818e534e6b134b8e4 | ||
20 | Submitted-also-by: parazyd <parazyd@dyne.org> | ||
21 | Signed-off-by: Baruch Siach <baruch@tkos.co.il> | ||
22 | Signed-off-by: Guillem Jover <guillem@hadrons.org> | ||
23 | |||
24 | Upstream-Status: Backport | ||
25 | [https://gitlab.freedesktop.org/libbsd/libbsd/commit/13c32916b4baab58d93940d57fea9ff0777f1931] | ||
26 | |||
27 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
28 | --- | ||
29 | src/flopen.c | 1 + | ||
30 | 1 file changed, 1 insertion(+) | ||
31 | |||
32 | diff --git a/src/flopen.c b/src/flopen.c | ||
33 | index b9972c9..ff20d07 100644 | ||
34 | --- a/src/flopen.c | ||
35 | +++ b/src/flopen.c | ||
36 | @@ -32,6 +32,7 @@ | ||
37 | #include <sys/stat.h> | ||
38 | |||
39 | #include <errno.h> | ||
40 | +#include <fcntl.h> | ||
41 | #include <stdarg.h> | ||
42 | #include <unistd.h> | ||
43 | |||
44 | -- | ||
45 | 2.7.4 | ||
46 | |||