diff options
author | pav <pav@FreeBSD.org> | 2005-09-15 08:47:30 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2005-09-15 08:47:30 +0800 |
commit | e5b919abe80cd36b79d2b68bd559c3bb77b5d39e (patch) | |
tree | 282a25df23eb04619bc7c2290ad46ceee3b64e88 | |
parent | fb02a29229b3a87a4a09982c7c22b61fbc8596bb (diff) | |
download | freebsd-ports-graphics-e5b919abe80cd36b79d2b68bd559c3bb77b5d39e.tar.gz freebsd-ports-graphics-e5b919abe80cd36b79d2b68bd559c3bb77b5d39e.tar.zst freebsd-ports-graphics-e5b919abe80cd36b79d2b68bd559c3bb77b5d39e.zip |
- Fix build on FreeBSD 4.X
PR: ports/85082
Submitted by: Matthew Luckie <mjl@luckie.org.nz>
Approved by: bms (maintainer; blanket)
-rw-r--r-- | audio/gaim-festival/files/patch-festival.c | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/audio/gaim-festival/files/patch-festival.c b/audio/gaim-festival/files/patch-festival.c new file mode 100644 index 00000000000..731ad7b5a02 --- /dev/null +++ b/audio/gaim-festival/files/patch-festival.c @@ -0,0 +1,53 @@ +--- festival.c.orig Thu Aug 18 20:02:32 2005 ++++ festival.c Thu Aug 18 20:11:48 2005 +@@ -435,10 +435,11 @@ + { + char *stripped; + const char *alias = get_best_name(account, who); +- silent_joins = NULL; + + GString *buffer= g_string_new(""); + GString *ascii; ++ ++ silent_joins = NULL; + ascii = g_string_new(g_convert (what, strlen (what), + "ISO-8859-1", "UTF-8", + NULL, NULL, NULL)); +@@ -613,7 +614,12 @@ + plugin_load(GaimPlugin *plugin) { + + FILE *which_pf; +- char line[1024]; ++ char line[1024], proc[1024]; ++ int errno=0; ++ void *conv_handle; ++ void *blist_handle; ++ void *accounts_handle; ++ + which_pf= popen("which festival 2>/dev/null","r"); + fscanf(which_pf,"%1023s",line); + pclose(which_pf); +@@ -621,10 +627,8 @@ + if( *line != '/') + return FALSE; + +- char proc[1024]; + sprintf(proc, "%s %s", snd((char *)gaim_prefs_get_string("/gaim/gtk/sound/method")), line); + +- int errno=0; + festival_pf= popen(proc,"w"); + + if(errno) { +@@ -634,9 +638,9 @@ + + load_conf(); + +- void *conv_handle = gaim_conversations_get_handle(); +- void *blist_handle = gaim_blist_get_handle(); +- void *accounts_handle = gaim_accounts_get_handle(); ++ conv_handle = gaim_conversations_get_handle(); ++ blist_handle = gaim_blist_get_handle(); ++ accounts_handle = gaim_accounts_get_handle(); + + gaim_signal_connect(conv_handle, "received-im-msg", + plugin, GAIM_CALLBACK(im_recv_im), NULL); |