1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

Fix build on 4.X.

This commit is contained in:
Joe Marcus Clarke 2004-06-25 00:58:04 +00:00
parent a1abb3f3f0
commit 8139d3292d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=112184
4 changed files with 78 additions and 0 deletions

View File

@ -0,0 +1,20 @@
--- src/mwgaim.c.orig Thu Jun 24 20:55:29 2004
+++ src/mwgaim.c Thu Jun 24 20:56:30 2004
@@ -723,11 +723,14 @@
static char *mw_list_status_text(GaimBuddy *b) {
+ struct mw_plugin_data *pd;
+ struct mwIdBlock i = { b->name, NULL };
+ const char *t;
+
g_return_val_if_fail(b, NULL);
- struct mw_plugin_data *pd = PLUGIN_DATA(b->account->gc);
- struct mwIdBlock i = { b->name, NULL };
- const char *t = mwServiceAware_getText(pd->srvc_aware, &i);
+ pd = PLUGIN_DATA(b->account->gc);
+ t = mwServiceAware_getText(pd->srvc_aware, &i);
return t? g_strdup(t): NULL;
}

View File

@ -0,0 +1,19 @@
--- src/srvc_im.c.orig Thu Jun 24 20:53:09 2004
+++ src/srvc_im.c Thu Jun 24 20:53:33 2004
@@ -160,12 +160,14 @@
struct mwSession *s;
struct mwChannelSet *cs;
unsigned int a, b;
+ char *buf;
+ gsize n;
s = chan->session;
cs = s->channels;
- char *buf = msg->addtl.data;
- gsize n = msg->addtl.len;
+ buf = msg->addtl.data;
+ n = msg->addtl.len;
if( (msg->service != Service_IM) ||
(msg->proto_type != Protocol_IM) ||

View File

@ -0,0 +1,20 @@
--- src/mwgaim.c.orig Thu Jun 24 20:55:29 2004
+++ src/mwgaim.c Thu Jun 24 20:56:30 2004
@@ -723,11 +723,14 @@
static char *mw_list_status_text(GaimBuddy *b) {
+ struct mw_plugin_data *pd;
+ struct mwIdBlock i = { b->name, NULL };
+ const char *t;
+
g_return_val_if_fail(b, NULL);
- struct mw_plugin_data *pd = PLUGIN_DATA(b->account->gc);
- struct mwIdBlock i = { b->name, NULL };
- const char *t = mwServiceAware_getText(pd->srvc_aware, &i);
+ pd = PLUGIN_DATA(b->account->gc);
+ t = mwServiceAware_getText(pd->srvc_aware, &i);
return t? g_strdup(t): NULL;
}

View File

@ -0,0 +1,19 @@
--- src/srvc_im.c.orig Thu Jun 24 20:53:09 2004
+++ src/srvc_im.c Thu Jun 24 20:53:33 2004
@@ -160,12 +160,14 @@
struct mwSession *s;
struct mwChannelSet *cs;
unsigned int a, b;
+ char *buf;
+ gsize n;
s = chan->session;
cs = s->channels;
- char *buf = msg->addtl.data;
- gsize n = msg->addtl.len;
+ buf = msg->addtl.data;
+ n = msg->addtl.len;
if( (msg->service != Service_IM) ||
(msg->proto_type != Protocol_IM) ||