gkrellm: add patch to make this build.
--HG-- extra : convert_revision : 0a4d97252d57a76758e2e531b1a0ff444e3e84eb
This commit is contained in:
parent
568eeb6c3c
commit
2e60247a32
1 changed files with 29 additions and 0 deletions
29
srcpkgs/gkrellm/patches/fix_getline_glibc_conflict.diff
Normal file
29
srcpkgs/gkrellm/patches/fix_getline_glibc_conflict.diff
Normal file
|
@ -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, "</gkrellmd_setup>"))
|
||||
@@ -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, "</initial_update>"))
|
Loading…
Reference in a new issue