mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-16 00:30:06 +02:00
37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
From b507e6ccc22d1c62aa3e71446bdb7c6c9541bd19 Mon Sep 17 00:00:00 2001
|
|
From: Chris Roberts <cpr420@gmail.com>
|
|
Date: Sat, 27 May 2023 21:35:29 -0600
|
|
Subject: quick fixes for Haiku
|
|
|
|
|
|
diff --git a/configure b/configure
|
|
index 857ce4e..3ed32eb 100755
|
|
--- a/configure
|
|
+++ b/configure
|
|
@@ -189,7 +189,7 @@ true
|
|
# Headers needed for function prototypes and curses.
|
|
(
|
|
[ $HAVE_CURSES -eq 1 ] && echo curses.h term.h
|
|
-[ $HAVE_NCURSESW -eq 1 ] && echo ncursesw/curses.h ncursesw/term.h
|
|
+[ $HAVE_NCURSESW -eq 1 ] && echo curses.h term.h
|
|
[ $HAVE_PLEDGE -eq 0 ] && echo stdlib.h
|
|
[ $HAVE_REALLOCARRAY -eq 0 ] && echo stdlib.h
|
|
[ $HAVE_STRTONUM -eq 0 ] && echo stdlib.h
|
|
diff --git a/pick.c b/pick.c
|
|
index 0d45534..eeb5c7e 100644
|
|
--- a/pick.c
|
|
+++ b/pick.c
|
|
@@ -643,7 +643,9 @@ tty_init(int doinit)
|
|
new_attributes.c_lflag &= ~(ECHO | ICANON | IEXTEN | ISIG);
|
|
new_attributes.c_cc[VMIN] = 1;
|
|
new_attributes.c_cc[VTIME] = 0;
|
|
+#ifdef VDISCARD
|
|
new_attributes.c_cc[VDISCARD] = _POSIX_VDISABLE;
|
|
+#endif
|
|
tcsetattr(fileno(tty_in), TCSANOW, &new_attributes);
|
|
|
|
if (doinit && (tty_out = fopen("/dev/tty", "w")) == NULL)
|
|
--
|
|
2.39.2
|
|
|