diff options
author | jmmv <jmmv@pkgsrc.org> | 2009-10-10 12:52:40 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2009-10-10 12:52:40 +0000 |
commit | 19a56e56664a622cf44f721196ac7f1c8d887565 (patch) | |
tree | 2baa6232413ac635850db97bdc81ed9bc71ee43b /sysutils/gkrellm | |
parent | 619a0eace5f514279adc78ea2d7d22a5cc7470a2 (diff) | |
download | pkgsrc-19a56e56664a622cf44f721196ac7f1c8d887565.tar.gz |
Rename auxiliary getline function which collides with the new prototype in
NetBSD current. Found on NetBSD/macppc 5.99.19.
Diffstat (limited to 'sysutils/gkrellm')
-rw-r--r-- | sysutils/gkrellm/distinfo | 4 | ||||
-rw-r--r-- | sysutils/gkrellm/patches/patch-ap | 31 |
2 files changed, 31 insertions, 4 deletions
diff --git a/sysutils/gkrellm/distinfo b/sysutils/gkrellm/distinfo index 8508f1193cf..04042335c5c 100644 --- a/sysutils/gkrellm/distinfo +++ b/sysutils/gkrellm/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.39 2008/12/19 21:25:28 macallan Exp $ +$NetBSD: distinfo,v 1.40 2009/10/10 12:52:40 jmmv Exp $ SHA1 (gkrellm-2.2.10.tar.bz2) = 329d0ba5600998f21b75491937c3c2924ab6ed40 RMD160 (gkrellm-2.2.10.tar.bz2) = 6694838015716c09291887ae598daceb4f4b440f @@ -17,7 +17,7 @@ SHA1 (patch-al) = 4eab3c3757c198dcc3049a63fc3b8adceef7bc1c SHA1 (patch-am) = bf8b01f5e368a5387f8d224ca51ec18a74410b5c SHA1 (patch-an) = 1e63ce0e4fbe9bd22c46d00c6aeac6b3e7cda440 SHA1 (patch-ao) = c9e1a7324e0a9194c05554a09bafd4fe0460df38 -SHA1 (patch-ap) = b2c33796fdfdc0166a869e528fcaab1f8f0ab615 +SHA1 (patch-ap) = 0781bec3da89724f7145beaffba4aa318493dbef SHA1 (patch-aq) = 0799e334333ae072a40cdcb6ccd04ed6a2f52765 SHA1 (patch-ar) = 86ee88c8506c1ceb1d35eb488d209b16306a715d SHA1 (patch-as) = 3df33e28754cf1fee88717b431726bf090c15f70 diff --git a/sysutils/gkrellm/patches/patch-ap b/sysutils/gkrellm/patches/patch-ap index b0d4362c070..f24e14e0922 100644 --- a/sysutils/gkrellm/patches/patch-ap +++ b/sysutils/gkrellm/patches/patch-ap @@ -1,6 +1,6 @@ -$NetBSD: patch-ap,v 1.2 2006/03/19 22:10:38 joerg Exp $ +$NetBSD: patch-ap,v 1.3 2009/10/10 12:52:40 jmmv Exp $ ---- src/client.c.orig 2005-05-24 04:28:22.000000000 +0000 +--- src/client.c.orig 2006-09-27 22:29:18.000000000 +0100 +++ src/client.c @@ -24,6 +24,8 @@ #include "gkrellm-private.h" @@ -58,3 +58,30 @@ $NetBSD: patch-ap,v 1.2 2006/03/19 22:10:38 joerg Exp $ &mem.swap_total, &mem.swap_used, &mem.swap_in, &mem.swap_out); } +@@ -1598,7 +1604,7 @@ KeyTable update_table[] = + + + static gint +-getline(gint fd, gchar *buf, gint len) ++xgetline(gint fd, gchar *buf, gint len) + { + fd_set read_fds; + struct timeval tv; +@@ -1690,7 +1696,7 @@ read_server_setup(gint fd) + + while (1) + { +- getline(fd, buf, sizeof(buf)); ++ xgetline(fd, buf, sizeof(buf)); + if (!strcmp(buf, "</gkrellmd_setup>")) + break; + process_server_line(&setup_table[0], table_size, buf); +@@ -1706,7 +1712,7 @@ read_server_setup(gint fd) + table_size = sizeof(update_table) / sizeof(KeyTable); + while (1) + { +- getline(fd, buf, sizeof(buf)); ++ xgetline(fd, buf, sizeof(buf)); + if (!strcmp(buf, "</initial_update>")) + break; + process_server_line(&update_table[0], table_size, buf); |