summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/libbsd/libbsd/0001-Fix-for-older-GCCs-not-supporting-__has_include.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/libbsd/libbsd/0001-Fix-for-older-GCCs-not-supporting-__has_include.patch')
-rw-r--r--meta/recipes-support/libbsd/libbsd/0001-Fix-for-older-GCCs-not-supporting-__has_include.patch31
1 files changed, 31 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 @@
1From 2fbf47ce9b64f4e07be223bc2870348a68f19d86 Mon Sep 17 00:00:00 2001
2From: Adam Lackorzynski <adam@l4re.org>
3Date: Sat, 21 Oct 2017 23:08:31 +0200
4Subject: [PATCH] Fix for older GCCs not supporting __has_include*
5
6Upstream-Status: Submitted [https://bugs.freedesktop.org/show_bug.cgi?id=103396]
7Signed-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
12diff --git a/include/bsd/sys/cdefs.h b/include/bsd/sys/cdefs.h
13index 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--
302.12.0
31