Gentoo Archives: gentoo-commits

From: "Ryan Hill (dirtyepic)" <dirtyepic@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-irc/xchatosd/files: xchatosd-5.19-gcc43.patch
Date: Thu, 12 Feb 2009 05:17:57
Message-Id: E1LXTxS-0001ii-Jz@stork.gentoo.org
1 dirtyepic 09/02/12 05:17:54
2
3 Added: xchatosd-5.19-gcc43.patch
4 Log:
5 Fix building w/ gcc-4.3 for bug #251449. Thanks to Gene Seto for the
6 patch.
7 (Portage version: 2.2_rc23/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 net-irc/xchatosd/files/xchatosd-5.19-gcc43.patch
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/xchatosd/files/xchatosd-5.19-gcc43.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-irc/xchatosd/files/xchatosd-5.19-gcc43.patch?rev=1.1&content-type=text/plain
14
15 Index: xchatosd-5.19-gcc43.patch
16 ===================================================================
17 https://bugs.gentoo.org/show_bug.cgi?id=251449
18
19 --- xchatosd-5.19-orig/xchatosd_conf.cpp
20 +++ xchatosd-5.19/xchatosd_conf.cpp
21 @@ -1,4 +1,6 @@
22 #include "xchatosd_conf.h"
23 +#include <cstdlib>
24 +#include <cstring>
25
26 XOsdConf::XOsdConf()
27 {
28 --- xchatosd-5.19-orig/xchatosd.cpp
29 +++ xchatosd-5.19/xchatosd.cpp
30 @@ -3,8 +3,7 @@
31 #include <fstream>
32 #include <iostream>
33 #include <xosd.h>
34 -#include <stdio.h>
35 -#include <stdlib.h>
36 +#include <cstring>
37 #include <langinfo.h>
38 #include "xchatosd.h"
39 #include "xchatosd_lang.h"
40 @@ -22,7 +21,7 @@ using namespace std;
41 static xchat_plugin *ph;
42 static XOsd *osd = NULL;
43 static XOsdConf config;
44 -static char *codepage;
45 +static char const *codepage;
46 #ifdef ICONV_LIB
47 static iconv_t iconv_desc = (iconv_t) (-1);
48 #endif
49 @@ -445,8 +444,8 @@ static int osd_notify_cb(char *word[], c
50
51 extern "C" { int
52 xchat_plugin_init(xchat_plugin * plugin_handle,
53 - char **plugin_name,
54 - char **plugin_desc, char **plugin_version, char *arg)
55 + char const **plugin_name,
56 + char const **plugin_desc, char const **plugin_version, char *arg)
57 {
58 ph = plugin_handle;
59 XOSDconfRead();