Work around a bug in libcpp that pulls in the optional system iconv
if present (even if the libiconv port is present and requested) and fails using that. The issue is that /usr/include/iconv.h has #include <stdbool.h> which in turn, since both are included very late in the game, conflicts with similar definintions by libcpp itself. libstdc++ does not seem to require adjustments, so PR 161417 may not be relevant in full. PR: 161417
This commit is contained in:
parent
9fab95818d
commit
bbd59ec3c8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=326538
1 changed files with 10 additions and 0 deletions
10
lang/gcc44/files/patch-libcpp
Normal file
10
lang/gcc44/files/patch-libcpp
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- libcpp/internal.h 2012-07-30 09:24:59.000000000 +0000
|
||||
+++ libcpp/internal.h 2013-09-04 00:41:26.000000000 +0000
|
||||
@@ -27,6 +27,7 @@
|
||||
#include "cpp-id-data.h"
|
||||
|
||||
#if HAVE_ICONV
|
||||
+#define __bool_true_false_are_defined
|
||||
#include <iconv.h>
|
||||
#else
|
||||
#define HAVE_ICONV 0
|
Loading…
Reference in a new issue