From 2e60247a32a21494ea7a1141fe30940f417c7ff2 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 24 Nov 2009 05:14:35 +0000 Subject: [PATCH] gkrellm: add patch to make this build. --HG-- extra : convert_revision : 0a4d97252d57a76758e2e531b1a0ff444e3e84eb --- .../patches/fix_getline_glibc_conflict.diff | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 srcpkgs/gkrellm/patches/fix_getline_glibc_conflict.diff diff --git a/srcpkgs/gkrellm/patches/fix_getline_glibc_conflict.diff b/srcpkgs/gkrellm/patches/fix_getline_glibc_conflict.diff new file mode 100644 index 0000000000..4fda0f52c1 --- /dev/null +++ b/srcpkgs/gkrellm/patches/fix_getline_glibc_conflict.diff @@ -0,0 +1,29 @@ +--- src/client.c.orig 2009-11-24 05:12:11.957336471 +0000 ++++ src/client.c 2009-11-24 05:12:29.289887242 +0000 +@@ -1620,7 +1620,7 @@ KeyTable update_table[] = + + + static gint +-getline(gint fd, gchar *buf, gint len) ++get_line(gint fd, gchar *buf, gint len) + { + fd_set read_fds; + struct timeval tv; +@@ -1714,7 +1714,7 @@ read_server_setup(gint fd) + + while (1) + { +- rs=getline(fd, buf, sizeof(buf)); ++ rs=get_line(fd, buf, sizeof(buf)); + if(rs<0) + return FALSE; + if (!strcmp(buf, "")) +@@ -1732,7 +1732,7 @@ read_server_setup(gint fd) + table_size = sizeof(update_table) / sizeof(KeyTable); + while (1) + { +- rs=getline(fd, buf, sizeof(buf)); ++ rs=get_line(fd, buf, sizeof(buf)); + if(rs<0) + return FALSE; + if (!strcmp(buf, ""))