components/bash/patches/solaris-025.libreadline.terminal.c.patch
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Sat, 24 Sep 2016 09:29:15 -0700
changeset 6971 32152bc508b7
parent 5518 c47fe0edc204
permissions -rw-r--r--
Close of build 109.

# If bash uses ncurses, then its own copy of libreadline should
# use ncurses too.
# Solaris-specific. On Linux, the <ncurses.h> header file is named
# <curses.h>.
# We should submit this upstream.
--- lib/readline/terminal.c	2013-09-18 06:12:01.000000000 -0700
+++ lib/readline/terminal.c	2015-04-02 11:02:07.348094364 -0700
@@ -48,6 +48,10 @@
 
 #include <stdio.h>
 
+#if defined(SOLARIS)
+# include <ncurses/ncurses.h>
+#endif
+
 /* System-specific feature definitions and include files. */
 #include "rldefs.h"