diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2017-12-04 11:59:17 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-12-10 22:45:19 +0000 |
commit | d8ebe9ad6e69ca827b88673568a7b42b9f66451d (patch) | |
tree | b8fb96dbe1a4b4c63a5d0a60c61fbefea3c80666 /meta/recipes-support/libbsd | |
parent | 0e0a94c200a877cbc29ffeab81e5e857cdd9b485 (diff) | |
download | poky-d8ebe9ad6e69ca827b88673568a7b42b9f66451d.tar.gz |
libbsd: Make it build with GCC 5.0 and older
(From OE-Core rev: 2a769d0831cf368992cf540e7758cc2c2d9067ab)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/libbsd')
-rw-r--r-- | meta/recipes-support/libbsd/libbsd/0001-Fix-for-older-GCCs-not-supporting-__has_include.patch | 31 | ||||
-rw-r--r-- | meta/recipes-support/libbsd/libbsd_0.8.6.bb | 1 |
2 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-support/libbsd/libbsd/0001-Fix-for-older-GCCs-not-supporting-__has_include.patch b/meta/recipes-support/libbsd/libbsd/0001-Fix-for-older-GCCs-not-supporting-__has_include.patch new file mode 100644 index 0000000000..d13732bdaf --- /dev/null +++ b/meta/recipes-support/libbsd/libbsd/0001-Fix-for-older-GCCs-not-supporting-__has_include.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From 2fbf47ce9b64f4e07be223bc2870348a68f19d86 Mon Sep 17 00:00:00 2001 | ||
2 | From: Adam Lackorzynski <adam@l4re.org> | ||
3 | Date: Sat, 21 Oct 2017 23:08:31 +0200 | ||
4 | Subject: [PATCH] Fix for older GCCs not supporting __has_include* | ||
5 | |||
6 | Upstream-Status: Submitted [https://bugs.freedesktop.org/show_bug.cgi?id=103396] | ||
7 | Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> | ||
8 | --- | ||
9 | include/bsd/sys/cdefs.h | 4 ++-- | ||
10 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
11 | |||
12 | diff --git a/include/bsd/sys/cdefs.h b/include/bsd/sys/cdefs.h | ||
13 | index 044f221..b4c8f30 100644 | ||
14 | --- a/include/bsd/sys/cdefs.h | ||
15 | +++ b/include/bsd/sys/cdefs.h | ||
16 | @@ -25,10 +25,10 @@ | ||
17 | */ | ||
18 | |||
19 | #ifndef __has_include | ||
20 | -#define __has_include 1 | ||
21 | +#define __has_include(x) 1 | ||
22 | #endif | ||
23 | #ifndef __has_include_next | ||
24 | -#define __has_include_next 1 | ||
25 | +#define __has_include_next(x) 1 | ||
26 | #endif | ||
27 | |||
28 | #ifdef LIBBSD_OVERLAY | ||
29 | -- | ||
30 | 2.12.0 | ||
31 | |||
diff --git a/meta/recipes-support/libbsd/libbsd_0.8.6.bb b/meta/recipes-support/libbsd/libbsd_0.8.6.bb index 182543fd42..c88517f5b5 100644 --- a/meta/recipes-support/libbsd/libbsd_0.8.6.bb +++ b/meta/recipes-support/libbsd/libbsd_0.8.6.bb | |||
@@ -36,6 +36,7 @@ SECTION = "libs" | |||
36 | SRC_URI = " \ | 36 | SRC_URI = " \ |
37 | http://libbsd.freedesktop.org/releases/${BPN}-${PV}.tar.xz \ | 37 | http://libbsd.freedesktop.org/releases/${BPN}-${PV}.tar.xz \ |
38 | file://0001-src-libbsd-overlay.pc.in-Set-Cflags-to-use-I-instead.patch \ | 38 | file://0001-src-libbsd-overlay.pc.in-Set-Cflags-to-use-I-instead.patch \ |
39 | file://0001-Fix-for-older-GCCs-not-supporting-__has_include.patch \ | ||
39 | " | 40 | " |
40 | SRC_URI_append_libc-musl = " \ | 41 | SRC_URI_append_libc-musl = " \ |
41 | file://0001-Replace-__BEGIN_DECLS-and-__END_DECLS.patch \ | 42 | file://0001-Replace-__BEGIN_DECLS-and-__END_DECLS.patch \ |