mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
Fix runtime on 64-bit architectures.
PR: 58539 Submitted by: Koop Mast <einekoai@chello.nl> Obtained from: xchat CVS Tested on: sparc64
This commit is contained in:
parent
cc74f690d6
commit
10f9cf518e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=92143
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= xchat2
|
||||
PORTVERSION= 2.0.5
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= irc gnome ipv6
|
||||
MASTER_SITES= http://xchat.org/files/source/2.0/ \
|
||||
http://xchat.linuxpower.org/files/source/2.0/
|
||||
|
13
irc/xchat-gnome/files/patch-src_common_server.c
Normal file
13
irc/xchat-gnome/files/patch-src_common_server.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- src/common/server.c.orig Sun Aug 10 17:40:15 2003
|
||||
+++ src/common/server.c Sat Oct 25 22:29:12 2003
|
||||
@@ -289,8 +289,8 @@
|
||||
{
|
||||
char *conv_line; /* holds a copy of the original string */
|
||||
int conv_len; /* tells g_convert how much of line to convert */
|
||||
- int utf_len;
|
||||
- int read_len;
|
||||
+ gsize utf_len;
|
||||
+ gsize read_len;
|
||||
GError *err;
|
||||
gboolean retry;
|
||||
|
11
irc/xchat-gnome/files/patch-src_common_text.c
Normal file
11
irc/xchat-gnome/files/patch-src_common_text.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/common/text.c.orig Sun Sep 21 12:36:15 2003
|
||||
+++ src/common/text.c Sat Oct 25 22:29:56 2003
|
||||
@@ -446,7 +446,7 @@
|
||||
get_stamp_str (char *fmt, time_t tim, char **ret)
|
||||
{
|
||||
char dest[128];
|
||||
- int len;
|
||||
+ gsize len;
|
||||
|
||||
len = strftime (dest, sizeof (dest), fmt, localtime (&tim));
|
||||
if (len)
|
22
irc/xchat-gnome/files/patch-src_fe-gtk_xtext.c
Normal file
22
irc/xchat-gnome/files/patch-src_fe-gtk_xtext.c
Normal file
@ -0,0 +1,22 @@
|
||||
--- src/fe-gtk/xtext.c.orig Thu Sep 18 07:26:52 2003
|
||||
+++ src/fe-gtk/xtext.c Sat Oct 25 22:31:45 2003
|
||||
@@ -2126,6 +2126,7 @@
|
||||
char *stripped;
|
||||
guchar *new_text;
|
||||
int len;
|
||||
+ gsize glen;
|
||||
|
||||
stripped = gtk_xtext_selection_get_text (xtext, &len);
|
||||
if (!stripped)
|
||||
@@ -2158,9 +2159,9 @@
|
||||
}
|
||||
break;
|
||||
default:
|
||||
- new_text = g_locale_from_utf8 (stripped, len, NULL, &len, NULL);
|
||||
+ new_text = g_locale_from_utf8 (stripped, len, NULL, &glen, NULL);
|
||||
gtk_selection_data_set (selection_data_ptr, GDK_SELECTION_TYPE_STRING,
|
||||
- 8, new_text, len);
|
||||
+ 8, new_text, glen);
|
||||
g_free (new_text);
|
||||
}
|
||||
|
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= xchat2
|
||||
PORTVERSION= 2.0.5
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= irc gnome ipv6
|
||||
MASTER_SITES= http://xchat.org/files/source/2.0/ \
|
||||
http://xchat.linuxpower.org/files/source/2.0/
|
||||
|
13
irc/xchat2/files/patch-src_common_server.c
Normal file
13
irc/xchat2/files/patch-src_common_server.c
Normal file
@ -0,0 +1,13 @@
|
||||
--- src/common/server.c.orig Sun Aug 10 17:40:15 2003
|
||||
+++ src/common/server.c Sat Oct 25 22:29:12 2003
|
||||
@@ -289,8 +289,8 @@
|
||||
{
|
||||
char *conv_line; /* holds a copy of the original string */
|
||||
int conv_len; /* tells g_convert how much of line to convert */
|
||||
- int utf_len;
|
||||
- int read_len;
|
||||
+ gsize utf_len;
|
||||
+ gsize read_len;
|
||||
GError *err;
|
||||
gboolean retry;
|
||||
|
11
irc/xchat2/files/patch-src_common_text.c
Normal file
11
irc/xchat2/files/patch-src_common_text.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/common/text.c.orig Sun Sep 21 12:36:15 2003
|
||||
+++ src/common/text.c Sat Oct 25 22:29:56 2003
|
||||
@@ -446,7 +446,7 @@
|
||||
get_stamp_str (char *fmt, time_t tim, char **ret)
|
||||
{
|
||||
char dest[128];
|
||||
- int len;
|
||||
+ gsize len;
|
||||
|
||||
len = strftime (dest, sizeof (dest), fmt, localtime (&tim));
|
||||
if (len)
|
22
irc/xchat2/files/patch-src_fe-gtk_xtext.c
Normal file
22
irc/xchat2/files/patch-src_fe-gtk_xtext.c
Normal file
@ -0,0 +1,22 @@
|
||||
--- src/fe-gtk/xtext.c.orig Thu Sep 18 07:26:52 2003
|
||||
+++ src/fe-gtk/xtext.c Sat Oct 25 22:31:45 2003
|
||||
@@ -2126,6 +2126,7 @@
|
||||
char *stripped;
|
||||
guchar *new_text;
|
||||
int len;
|
||||
+ gsize glen;
|
||||
|
||||
stripped = gtk_xtext_selection_get_text (xtext, &len);
|
||||
if (!stripped)
|
||||
@@ -2158,9 +2159,9 @@
|
||||
}
|
||||
break;
|
||||
default:
|
||||
- new_text = g_locale_from_utf8 (stripped, len, NULL, &len, NULL);
|
||||
+ new_text = g_locale_from_utf8 (stripped, len, NULL, &glen, NULL);
|
||||
gtk_selection_data_set (selection_data_ptr, GDK_SELECTION_TYPE_STRING,
|
||||
- 8, new_text, len);
|
||||
+ 8, new_text, glen);
|
||||
g_free (new_text);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user