Hi!

Leonard Schmidt reported a bug against lynx in pkgsrc when compiling
with ncursesw, see http://gnats.netbsd.org/49200

I can confirm that without the patch below, I get the following
compilation issue:

LYStrings.c: In function 'expand_tiname':
LYStrings.c:1009:37: error: 'strnames' undeclared (first use in this function)
     if ((code = lookup_tiname(name, strnames)) >= 0
                                     ^
LYStrings.c:1009:37: note: each undeclared identifier is reported only once for 
each function it appears in
LYStrings.c:1010:33: error: 'strfnames' undeclared (first use in this function)
  || (code = lookup_tiname(name, strfnames)) >= 0) {
                                 ^
LYStrings.c:1011:6: error: 'cur_term' undeclared (first use in this function)
  if (cur_term->type.Strings[code] != 0) {
      ^

on NetBSD-7.99.1/x86_64 with gcc-4.8.3.

The patch is attached, please include it.

Thanks,
 Thomas
$NetBSD$

--- src/LYStrings.c.orig        2013-11-29 00:52:56.000000000 +0000
+++ src/LYStrings.c
@@ -40,6 +40,10 @@
 #include <LYrcFile.h>
 #endif
 
+#ifdef NCURSES
+#include <ncurses/term.h>
+#endif
+
 #include <LYShowInfo.h>
 #include <LYLeaks.h>
 
_______________________________________________
Lynx-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lynx-dev

Reply via email to