[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pan-devel] Patches to Pan 0.132 for Fedora 9/GCC 4.3.0
From: |
Jeremy Bennett |
Subject: |
[Pan-devel] Patches to Pan 0.132 for Fedora 9/GCC 4.3.0 |
Date: |
Wed, 03 Sep 2008 15:45:01 +0100 |
GCC 4.3.0 is pickier than older compilers about which headers are
included. I've patched the source of Pan 0.132 to add the missing
headers.
----- Start of patch file ------
diff -Naur pan-0.132/pan/data-impl/my-tree.cc
pan-0.132-patched/pan/data-impl/my-tree.cc
--- pan-0.132/pan/data-impl/my-tree.cc 2007-08-01 18:00:00.000000000 +0100
+++ pan-0.132-patched/pan/data-impl/my-tree.cc 2008-09-03 15:11:20.000000000
+0100
@@ -19,7 +19,7 @@
#include <config.h>
#include <cassert>
-#include <glib/gmessages.h> // for g_assert
+#include <glib/gmessages.h> // for g_assert (oh no its not - JPB)
#include <pan/general/debug.h>
#include <pan/general/foreach.h>
#include <pan/general/quark.h>
@@ -28,6 +28,8 @@
#include "article-filter.h"
#include "data-impl.h"
+#include <glib.h> // What's really needed for g_assert (JPB)
+
using namespace pan;
/****
diff -Naur pan-0.132/pan/general/file-util.cc
pan-0.132-patched/pan/general/file-util.cc
--- pan-0.132/pan/general/file-util.cc 2007-08-01 18:00:01.000000000 +0100
+++ pan-0.132-patched/pan/general/file-util.cc 2008-09-03 14:57:27.000000000
+0100
@@ -39,6 +39,8 @@
#include "file-util.h"
#include "utf8-utils.h"
+#include <algorithm>
+
using namespace pan;
#define is_nonempty_string(a) ((a) && (*a))
diff -Naur pan-0.132/pan/general/line-reader.cc
pan-0.132-patched/pan/general/line-reader.cc
--- pan-0.132/pan/general/line-reader.cc 2007-08-01 18:00:01.000000000
+0100
+++ pan-0.132-patched/pan/general/line-reader.cc 2008-09-03
14:58:13.000000000 +0100
@@ -7,6 +7,7 @@
#include "file-util.h"
#include "line-reader.h"
#include "log.h"
+#include <stdlib.h>
#define INITIAL_BUF_SIZE 4096
diff -Naur pan-0.132/pan/general/quark.h pan-0.132-patched/pan/general/quark.h
--- pan-0.132/pan/general/quark.h 2007-08-01 18:00:01.000000000 +0100
+++ pan-0.132-patched/pan/general/quark.h 2008-09-03 15:00:09.000000000
+0100
@@ -27,6 +27,7 @@
#include <string>
#include <climits>
#include <vector>
+#include <cstring>
#if defined(HAVE_EXT_HASH_SET)
# include <ext/hash_set>
diff -Naur pan-0.132/pan/general/string-view.h
pan-0.132-patched/pan/general/string-view.h
--- pan-0.132/pan/general/string-view.h 2007-08-01 18:00:01.000000000 +0100
+++ pan-0.132-patched/pan/general/string-view.h 2008-09-03 14:54:39.000000000
+0100
@@ -22,6 +22,7 @@
#include <iosfwd>
#include <string>
+#include <string.h>
namespace pan
{
diff -Naur pan-0.132/pan/gui/prefs.cc pan-0.132-patched/pan/gui/prefs.cc
--- pan-0.132/pan/gui/prefs.cc 2007-08-01 18:00:00.000000000 +0100
+++ pan-0.132-patched/pan/gui/prefs.cc 2008-09-03 15:18:38.000000000 +0100
@@ -31,6 +31,8 @@
#include <pan/general/log.h>
#include "prefs.h"
+#include <stdlib.h>
+
using namespace pan;
// called for open tags <foo bar='baz'>
diff -Naur pan-0.132/pan/tasks/socket-impl-scripted.cc
pan-0.132-patched/pan/tasks/socket-impl-scripted.cc
--- pan-0.132/pan/tasks/socket-impl-scripted.cc 2007-08-01 18:00:00.000000000
+0100
+++ pan-0.132-patched/pan/tasks/socket-impl-scripted.cc 2008-09-03
15:07:43.000000000 +0100
@@ -24,6 +24,8 @@
#include <pan/general/string-view.h>
#include "socket-impl-scripted.h"
+#include <stdlib.h>
+
using namespace pan;
const std::string ScriptedSocket::ABORT ("[[[ABORT]]]");
diff -Naur pan-0.132/pan/usenet-utils/gnksa-test.cc
pan-0.132-patched/pan/usenet-utils/gnksa-test.cc
--- pan-0.132/pan/usenet-utils/gnksa-test.cc 2007-08-01 17:59:59.000000000
+0100
+++ pan-0.132-patched/pan/usenet-utils/gnksa-test.cc 2008-09-03
15:04:44.000000000 +0100
@@ -5,6 +5,8 @@
#include <pan/general/test.h>
#include "gnksa.h"
+#include <climits>
+
using namespace pan;
typedef struct
diff -Naur pan-0.132/pan/usenet-utils/numbers.cc
pan-0.132-patched/pan/usenet-utils/numbers.cc
--- pan-0.132/pan/usenet-utils/numbers.cc 2007-08-01 17:59:59.000000000
+0100
+++ pan-0.132-patched/pan/usenet-utils/numbers.cc 2008-09-03
15:02:11.000000000 +0100
@@ -21,6 +21,7 @@
#include <cctype>
#include <pan/general/string-view.h>
#include "numbers.h"
+#include <algorithm>
using namespace pan;
----- End of patch file ------
Jeremy
--
Tel: +44 (1202) 416955
Cell: +44 (7970) 676050
SkypeID: jeremybennett
Email: address@hidden
Web: www.embecosm.com
- [Pan-devel] Patches to Pan 0.132 for Fedora 9/GCC 4.3.0,
Jeremy Bennett <=