forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-libs/appstream: Fix build with GCC-7.3.0
Reported-by: Oruriz <[email protected]> Thanks-to: Felix Tiede <[email protected]> Closes: https://bugs.gentoo.org/670584 Package-Manager: Portage-2.3.51, Repoman-2.3.12 Signed-off-by: Andreas Sturmlechner <[email protected]>
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
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
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,24 @@ | ||
From 9252de815e4443d1b617211f38685afe7c0f6b0e Mon Sep 17 00:00:00 2001 | ||
From: Matthias Klumpp <[email protected]> | ||
Date: Sat, 20 Oct 2018 20:20:09 +0200 | ||
Subject: [PATCH] Explicitly include string.h in as-tag.c | ||
|
||
This apparently is necessary to fix an FTBFS issue with older GCC | ||
releases. Resolves #207 | ||
--- | ||
src/as-tag.c | 2 ++ | ||
1 file changed, 2 insertions(+) | ||
|
||
diff --git a/src/as-tag.c b/src/as-tag.c | ||
index 6afba621..91076e69 100644 | ||
--- a/src/as-tag.c | ||
+++ b/src/as-tag.c | ||
@@ -32,6 +32,8 @@ | ||
|
||
#include "as-tag.h" | ||
|
||
+#include <string.h> | ||
+ | ||
#ifdef __clang__ | ||
#pragma clang diagnostic ignored "-Wmissing-field-initializers" | ||
#endif |