mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-05 18:58:55 -04:00
42 lines
1.0 KiB
Plaintext
42 lines
1.0 KiB
Plaintext
$NetBSD: patch-src_gui_curses_gui-curses-term_c,v 1.5 2015/08/01 19:10:15 tonio Exp $
|
|
|
|
Include <ncurses/term.h>, not <ncursesw/term.h>.
|
|
Check for HAVE_NCURSES_TERM_H, not for HAVE_NCURSES_CURSES_H.
|
|
|
|
Workaround for build failure on early NetBSD 6.99.* and prerelease 6.0
|
|
(PR 46492)
|
|
|
|
--- src/gui/curses/gui-curses-term.c.orig 2015-05-10 07:24:50.000000000 +0000
|
|
+++ src/gui/curses/gui-curses-term.c
|
|
@@ -23,15 +23,15 @@
|
|
#include "config.h"
|
|
#endif
|
|
|
|
-#ifdef HAVE_NCURSESW_CURSES_H
|
|
-#ifdef __sun
|
|
+#ifdef HAVE_NCURSES_TERM_H
|
|
#include <ncurses/term.h>
|
|
#else
|
|
-#include <ncursesw/term.h>
|
|
-#endif /* __sun */
|
|
-#else
|
|
+#ifdef __NetBSD__
|
|
+/* workaround for build failure on early 6.99.* and prerelease 6.0 */
|
|
+#include <sys/cdefs.h>
|
|
+#endif
|
|
#include <term.h>
|
|
-#endif /* HAVE_NCURSESW_CURSES_H */
|
|
+#endif /* HAVE_NCURSESW_TERM_H */
|
|
|
|
|
|
/*
|
|
@@ -45,7 +45,7 @@
|
|
void
|
|
gui_term_set_eat_newline_glitch (int value)
|
|
{
|
|
-#ifdef HAVE_EAT_NEWLINE_GLITCH
|
|
+#if defined(HAVE_EAT_NEWLINE_GLITCH) && !defined(__NetBSD__)
|
|
eat_newline_glitch = value;
|
|
#else
|
|
/* make C compiler happy */
|