pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/42292: wm/selectwm has a getline()



>Number:         42292
>Category:       pkg
>Synopsis:       wm/selectwm has a getline()
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 09 01:10:00 +0000 2009
>Originator:     Steven Drake
>Release:        pkgsrc-2009Q3
>Organization:
>Environment:
System: Linux idran 2.6.30 #2 PREEMPT Sun Aug 9 18:32:44 NZST 2009 i686 
pentium4 i386 GNU/Linux
Architecture: pentium4
Machine: i686
C library: GNU C Library stable release version 2.10.1, by Roland McGrath et al.
>Description:
wm/selectwm has a getline()

options.c:35: error: conflicting types for 'getline'
/usr/include/stdio.h:651: note: previous declaration of 'getline' was here
*** Error code 1

Stop.

>Fix:
Index: pkgsrc/wm/selectwm/patches/patch-ad
===================================================================
--- /dev/nul
+++ pkgsrc/wm/selectwm/patches/patch-ad
@@ -0,0 +1,22 @@
+$NetBSD$
+
+--- src/options.c.orig 2002-05-23 05:39:27.000000000 +1200
++++ src/options.c
+@@ -32,7 +32,7 @@
+ #include "miscui.h"
+ #include "modify.h"
+ 
+-static GString *getline (FILE *fichier) {
++static GString *get_line (FILE *fichier) {
+       GString *temp;
+       gchar buf[128];
+       
+@@ -64,7 +64,7 @@ static gint read_config_file (config *se
+       }
+       buf = g_string_new ("");
+       while (!feof (config)) {
+-              buf = getline (config);
++              buf = get_line (config);
+ 
+               if (buf->len > 0 && buf->str[0] != '#') {
+                       if (g_strrstr (buf->str, ":")) {

-- 
Steven



Home | Main Index | Thread Index | Old Index