diff options
author | Khem Raj <raj.khem@gmail.com> | 2015-09-11 17:23:42 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-23 09:53:02 +0100 |
commit | 433a7a0e37761a9bc30027d6670695fbce9675b9 (patch) | |
tree | 61c8ec4a7df30175ae0f329378f244304168da6c /meta/recipes-devtools | |
parent | 5aadabf9ee8ce2e0f283985ae9fc7bf53ce427b8 (diff) | |
download | poky-433a7a0e37761a9bc30027d6670695fbce9675b9.tar.gz |
opkg: Include stdio.h for FILE definition
Helps with compling it on musl
(From OE-Core rev: 0e5829be82351f80f2071a40ba7959363e576489)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/opkg/opkg/0001-libopkg-include-stdio.h-for-getting-FILE-defined.patch | 45 | ||||
-rw-r--r-- | meta/recipes-devtools/opkg/opkg_0.3.0.bb | 1 |
2 files changed, 46 insertions, 0 deletions
diff --git a/meta/recipes-devtools/opkg/opkg/0001-libopkg-include-stdio.h-for-getting-FILE-defined.patch b/meta/recipes-devtools/opkg/opkg/0001-libopkg-include-stdio.h-for-getting-FILE-defined.patch new file mode 100644 index 0000000000..acc1338642 --- /dev/null +++ b/meta/recipes-devtools/opkg/opkg/0001-libopkg-include-stdio.h-for-getting-FILE-defined.patch | |||
@@ -0,0 +1,45 @@ | |||
1 | From 58f4d3d63cd6097154205ea7ee042005036659b3 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 10 Sep 2015 21:43:32 -0700 | ||
4 | Subject: [PATCH] libopkg: include stdio.h for getting FILE defined | ||
5 | To: opkg-devel@googlegroups.com | ||
6 | Cc: paul@paulbarker.me.uk | ||
7 | |||
8 | For some libc(musl) stdio.h may not get included indirectly which means | ||
9 | we need to mention it in explicit include list | ||
10 | |||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | Upstream-Status: Submitted | ||
14 | |||
15 | libopkg/opkg_verify.c | 1 + | ||
16 | libopkg/pkg_src.c | 1 + | ||
17 | 2 files changed, 2 insertions(+) | ||
18 | |||
19 | diff --git a/libopkg/opkg_verify.c b/libopkg/opkg_verify.c | ||
20 | index 41dc3f4..a71591d 100644 | ||
21 | --- a/libopkg/opkg_verify.c | ||
22 | +++ b/libopkg/opkg_verify.c | ||
23 | @@ -18,6 +18,7 @@ | ||
24 | |||
25 | #include <malloc.h> | ||
26 | #include <string.h> | ||
27 | +#include <stdio.h> | ||
28 | |||
29 | #include "file_util.h" | ||
30 | #include "opkg_conf.h" | ||
31 | diff --git a/libopkg/pkg_src.c b/libopkg/pkg_src.c | ||
32 | index e31ec21..6b49a00 100644 | ||
33 | --- a/libopkg/pkg_src.c | ||
34 | +++ b/libopkg/pkg_src.c | ||
35 | @@ -20,6 +20,7 @@ | ||
36 | |||
37 | #include <malloc.h> | ||
38 | #include <unistd.h> | ||
39 | +#include <stdio.h> | ||
40 | |||
41 | #include "file_util.h" | ||
42 | #include "opkg_conf.h" | ||
43 | -- | ||
44 | 2.5.1 | ||
45 | |||
diff --git a/meta/recipes-devtools/opkg/opkg_0.3.0.bb b/meta/recipes-devtools/opkg/opkg_0.3.0.bb index f4dbb2dd4d..884368f749 100644 --- a/meta/recipes-devtools/opkg/opkg_0.3.0.bb +++ b/meta/recipes-devtools/opkg/opkg_0.3.0.bb | |||
@@ -15,6 +15,7 @@ SRC_URI = "http://downloads.yoctoproject.org/releases/${BPN}/${BPN}-${PV}.tar.gz | |||
15 | file://opkg-configure.service \ | 15 | file://opkg-configure.service \ |
16 | file://opkg.conf \ | 16 | file://opkg.conf \ |
17 | file://0001-opkg_archive-add-support-for-empty-compressed-files.patch \ | 17 | file://0001-opkg_archive-add-support-for-empty-compressed-files.patch \ |
18 | file://0001-libopkg-include-stdio.h-for-getting-FILE-defined.patch \ | ||
18 | " | 19 | " |
19 | 20 | ||
20 | SRC_URI[md5sum] = "3412cdc71d78b98facc84b19331ec64e" | 21 | SRC_URI[md5sum] = "3412cdc71d78b98facc84b19331ec64e" |