mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
31 lines
869 B
Plaintext
31 lines
869 B
Plaintext
$NetBSD: patch-ad,v 1.8 2009/10/31 14:24:14 tnn Exp $
|
|
|
|
--- src/input.c.orig 2003-07-01 19:06:43.000000000 +0200
|
|
+++ src/input.c
|
|
@@ -127,7 +127,7 @@ void *input_func(void *arg __attribute__
|
|
(RealGameCnt+1)/2 + 1 );
|
|
}
|
|
pthread_mutex_lock(&input_mutex);
|
|
- getline(prompt);
|
|
+ get_line(prompt);
|
|
input_status = INPUT_AVAILABLE;
|
|
pthread_cond_signal(&input_cond);
|
|
pthread_mutex_unlock(&input_mutex);
|
|
@@ -173,13 +173,13 @@ void InitInput(void)
|
|
{
|
|
#ifdef HAVE_LIBREADLINE
|
|
if (isatty(STDIN_FILENO)) {
|
|
- getline = getline_readline;
|
|
+ get_line = getline_readline;
|
|
using_history();
|
|
} else {
|
|
- getline = getline_standard;
|
|
+ get_line = getline_standard;
|
|
}
|
|
#else
|
|
- getline = getline_standard;
|
|
+ get_line = getline_standard;
|
|
#endif
|
|
/* Start input thread */
|
|
pthread_create(&input_thread, NULL, input_func, NULL);
|