Add explicit <iostream> includes, fixes build with Boost 1.56

from gentoo via upstream
This commit is contained in:
jasper 2015-06-29 07:14:10 +00:00
parent cf807cbc87
commit 82adf1f5c9
5 changed files with 76 additions and 6 deletions

View File

@ -1,11 +1,21 @@
$OpenBSD: patch-src_cc_error_h,v 1.1 2013/09/27 13:47:35 ajacoutot Exp $
$OpenBSD: patch-src_cc_error_h,v 1.2 2015/06/29 07:14:10 jasper Exp $
XXX ./cc/error.h:42: error: invalid conversion from 'int' to 'const char*
XSI versus GNU implementation.
- XXX ./cc/error.h:42: error: invalid conversion from 'int' to 'const char*
XSI versus GNU implementation.
- Add explicit <iostream> includes, fixes build with Boost 1.56
https://github.com/legatvs/cclive/pull/2
--- src/cc/error.h.orig Fri Sep 27 15:33:07 2013
+++ src/cc/error.h Fri Sep 27 15:32:07 2013
@@ -36,13 +36,13 @@ namespace cc
--- src/cc/error.h.orig Sun Jun 28 21:43:19 2015
+++ src/cc/error.h Sun Jun 28 21:43:12 2015
@@ -28,6 +28,7 @@
#include <boost/exception/get_error_info.hpp>
#include <boost/exception/errinfo_errno.hpp>
#include <boost/tuple/tuple.hpp>
+#include <iostream>
#include <cerrno>
namespace cc
@@ -36,13 +37,13 @@ namespace cc
namespace error
{

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-src_cc_input_h,v 1.1 2015/06/29 07:14:10 jasper Exp $
Add explicit <iostream> includes, fixes build with Boost 1.56
https://github.com/legatvs/cclive/pull/2
--- src/cc/input.h.orig Sat Nov 23 10:46:27 2013
+++ src/cc/input.h Sun Jun 28 21:43:12 2015
@@ -23,6 +23,7 @@
#include <ccinternal>
+#include <iostream>
#include <istream>
#include <sstream>

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-src_cc_log_h,v 1.1 2015/06/29 07:14:10 jasper Exp $
Add explicit <iostream> includes, fixes build with Boost 1.56
https://github.com/legatvs/cclive/pull/2
--- src/cc/log.h.orig Sat Nov 23 10:46:27 2013
+++ src/cc/log.h Sun Jun 28 21:43:12 2015
@@ -25,6 +25,7 @@
#include <boost/iostreams/filtering_stream.hpp>
#include <boost/filesystem.hpp>
+#include <iostream>
#include <fstream>
#include <ccerror>

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-src_cc_options_h,v 1.3 2015/06/29 07:14:10 jasper Exp $
Add explicit <iostream> includes, fixes build with Boost 1.56
https://github.com/legatvs/cclive/pull/2
--- src/cc/options.h.orig Sat Nov 23 10:46:27 2013
+++ src/cc/options.h Sun Jun 28 21:43:12 2015
@@ -37,6 +37,7 @@
#include <boost/filesystem.hpp>
#include <boost/foreach.hpp>
#include <boost/format.hpp>
+#include <iostream>
#include <fstream>
#include <ccerror>

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-src_cc_sig_h,v 1.1 2015/06/29 07:14:10 jasper Exp $
Add explicit <iostream> includes, fixes build with Boost 1.56
https://github.com/legatvs/cclive/pull/2
--- src/cc/sig.h.orig Sat Nov 23 10:46:27 2013
+++ src/cc/sig.h Sun Jun 28 21:43:12 2015
@@ -26,6 +26,7 @@
#include <sys/ioctl.h>
#include <sys/types.h>
#include <unistd.h>
+#include <iostream>
#include <csignal>
#include <cstdio>