diff options
Diffstat (limited to 'wm/selectwm/patches/patch-ad')
-rw-r--r-- | wm/selectwm/patches/patch-ad | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/wm/selectwm/patches/patch-ad b/wm/selectwm/patches/patch-ad new file mode 100644 index 00000000000..9510c7c2878 --- /dev/null +++ b/wm/selectwm/patches/patch-ad @@ -0,0 +1,24 @@ +$NetBSD: patch-ad,v 1.1 2009/11/12 04:34:45 obache Exp $ + +Avoid to conflict with getline(3) defined in IEEE Std 1003.1-2008. + +--- src/options.c.orig 2002-05-22 17:39:27.000000000 +0000 ++++ 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, ":")) { |