2013-09-26 17:14:40 +02:00

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);