diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2003-05-28 12:27:32 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2003-05-28 12:27:32 +0800 |
commit | 981709a2b719b3b90923861a76432cc8005732eb (patch) | |
tree | 6079548b80262361c1a9b402d7267c31cde9fd0a | |
parent | b77b1e5a8781920fc77eecbeb88729c1f3c8b2be (diff) | |
download | marcuscom-ports-981709a2b719b3b90923861a76432cc8005732eb.tar marcuscom-ports-981709a2b719b3b90923861a76432cc8005732eb.tar.gz marcuscom-ports-981709a2b719b3b90923861a76432cc8005732eb.tar.bz2 marcuscom-ports-981709a2b719b3b90923861a76432cc8005732eb.tar.lz marcuscom-ports-981709a2b719b3b90923861a76432cc8005732eb.tar.xz marcuscom-ports-981709a2b719b3b90923861a76432cc8005732eb.tar.zst marcuscom-ports-981709a2b719b3b90923861a76432cc8005732eb.zip |
Fix a bug with 64-bit support.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@819 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r-- | www/libgtkhtml/Makefile | 1 | ||||
-rw-r--r-- | www/libgtkhtml/files/patch-libgtkhtml_util_htmlatomlist.c | 25 |
2 files changed, 26 insertions, 0 deletions
diff --git a/www/libgtkhtml/Makefile b/www/libgtkhtml/Makefile index 10bc094fa..dd5efedf2 100644 --- a/www/libgtkhtml/Makefile +++ b/www/libgtkhtml/Makefile @@ -7,6 +7,7 @@ PORTNAME= libgtkhtml PORTVERSION= 2.3.2 +PORTREVISION= 1 CATEGORIES= www gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/${PORTNAME}/2.3 diff --git a/www/libgtkhtml/files/patch-libgtkhtml_util_htmlatomlist.c b/www/libgtkhtml/files/patch-libgtkhtml_util_htmlatomlist.c new file mode 100644 index 000000000..5eec5f729 --- /dev/null +++ b/www/libgtkhtml/files/patch-libgtkhtml_util_htmlatomlist.c @@ -0,0 +1,25 @@ +--- libgtkhtml/util/htmlatomlist.c.orig Mon May 26 14:13:28 2003 ++++ libgtkhtml/util/htmlatomlist.c Mon May 26 15:29:00 2003 +@@ -68,10 +68,11 @@ + HtmlAtom atom; + gchar *ptr; + gboolean found; ++ gpointer old_atom; + + ptr = g_strdown (g_strdup (str)); + +- found = g_hash_table_lookup_extended (al->table, ptr, NULL, (gpointer) &atom); ++ found = g_hash_table_lookup_extended (al->table, ptr, NULL, &old_atom); + + if (!found) { + if (al->len % 512 == 0) +@@ -81,6 +82,9 @@ + atom = al->len; + g_hash_table_insert (al->table, al->data[al->len], GUINT_TO_POINTER (atom)); + al->len++; ++ } ++ else { ++ atom = GPOINTER_TO_UINT (old_atom); + } + + g_free (ptr); |