summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-01-08 19:21:18 +0000
committerjoerg <joerg@pkgsrc.org>2006-01-08 19:21:18 +0000
commit7e5bd7ae5f3344a8fc3d18f16fb47f695c933ad8 (patch)
tree0ffd0ea2f541872c3422fcb0e8072b1d5fb984ed /www
parentbc3d2425ebaf2bba137c914db4268ff8565a60ea (diff)
downloadpkgsrc-7e5bd7ae5f3344a8fc3d18f16fb47f695c933ad8.tar.gz
Rename strtonum function, it conflicts with a system prototype on
OpenBSD and DragonFly.
Diffstat (limited to 'www')
-rw-r--r--www/elinks04/distinfo3
-rw-r--r--www/elinks04/patches/patch-ad40
2 files changed, 42 insertions, 1 deletions
diff --git a/www/elinks04/distinfo b/www/elinks04/distinfo
index a4095f8aba2..14a001a02c5 100644
--- a/www/elinks04/distinfo
+++ b/www/elinks04/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.2 2005/02/24 14:08:30 wiz Exp $
+$NetBSD: distinfo,v 1.3 2006/01/08 19:21:18 joerg Exp $
SHA1 (elinks-0.4.3.tar.bz2) = 714fceaf57327849cdb3986ca937018624af6b5e
RMD160 (elinks-0.4.3.tar.bz2) = ccf4df27dfab136b69d2f1c29c32cc7df59fa241
@@ -6,3 +6,4 @@ Size (elinks-0.4.3.tar.bz2) = 767828 bytes
SHA1 (patch-aa) = 848266272ba4a4dfb6490b3c701ee20575121cb0
SHA1 (patch-ab) = afa6a0000e8fbe2d33669c9b34a3f157c087b42c
SHA1 (patch-ac) = b0041facbc15997bf272ada854ddfea94ef8158f
+SHA1 (patch-ad) = fd973e1306ab1264b09312b57577963a86aa2c13
diff --git a/www/elinks04/patches/patch-ad b/www/elinks04/patches/patch-ad
new file mode 100644
index 00000000000..a8a276ddc35
--- /dev/null
+++ b/www/elinks04/patches/patch-ad
@@ -0,0 +1,40 @@
+$NetBSD: patch-ad,v 1.1 2006/01/08 19:21:18 joerg Exp $
+
+--- src/config/kbdbind.c.orig 2003-06-06 23:13:25.000000000 +0000
++++ src/config/kbdbind.c
+@@ -216,7 +216,7 @@ struct strtonum {
+ };
+
+ static long
+-strtonum(struct strtonum *table, char *str)
++my_strtonum(struct strtonum *table, char *str)
+ {
+ struct strtonum *rec;
+
+@@ -263,7 +263,7 @@ static struct strtonum keymap_table[] =
+ static int
+ read_keymap(unsigned char *keymap)
+ {
+- return strtonum(keymap_table, keymap);
++ return my_strtonum(keymap_table, keymap);
+ }
+
+ unsigned char *
+@@ -306,7 +306,7 @@ static struct strtonum key_table[] = {
+ long
+ read_key(unsigned char *key)
+ {
+- return (strlen(key) == 1) ? *key : strtonum(key_table, key);
++ return (strlen(key) == 1) ? *key : my_strtonum(key_table, key);
+ }
+
+ static unsigned char *
+@@ -440,7 +440,7 @@ static struct strtonum action_table[] =
+ static int
+ read_action(unsigned char *action)
+ {
+- return strtonum(action_table, action);
++ return my_strtonum(action_table, action);
+ }
+
+ unsigned char *