Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 270449
Collapse All | Expand All

(-)gnome-games-2.24.3.ORIG/dependencies/gnuchess/input.c (-4 / +4 lines)
Lines 127-133 Link Here
127
	      (RealGameCnt+1)/2 + 1 );
127
	      (RealGameCnt+1)/2 + 1 );
128
    }
128
    }
129
    pthread_mutex_lock(&input_mutex);
129
    pthread_mutex_lock(&input_mutex);
130
    getline(prompt);
130
    getline_gnome(prompt);
131
    input_status = INPUT_AVAILABLE;
131
    input_status = INPUT_AVAILABLE;
132
    pthread_cond_signal(&input_cond);
132
    pthread_cond_signal(&input_cond);
133
    pthread_mutex_unlock(&input_mutex);
133
    pthread_mutex_unlock(&input_mutex);
Lines 173-185 Link Here
173
{
173
{
174
#ifdef HAVE_LIBREADLINE
174
#ifdef HAVE_LIBREADLINE
175
  if (isatty(STDIN_FILENO)) {
175
  if (isatty(STDIN_FILENO)) {
176
    getline = getline_readline;
176
    getline_gnome = getline_readline;
177
    using_history();
177
    using_history();
178
  } else {
178
  } else {
179
    getline = getline_standard;
179
    getline_gnome = getline_standard;
180
  }
180
  }
181
#else
181
#else
182
  getline = getline_standard;
182
  getline_gnome = getline_standard;
183
#endif
183
#endif
184
  /* Start input thread */
184
  /* Start input thread */
185
  pthread_create(&input_thread, NULL, input_func, NULL);
185
  pthread_create(&input_thread, NULL, input_func, NULL);
(-)gnome-games-2.24.3.ORIG/dependencies/gnuchess/common.h (-1 / +1 lines)
Lines 744-750 Link Here
744
 * Input routine, initialized to one of the specific
744
 * Input routine, initialized to one of the specific
745
 * input routines. The given argument is the prompt.
745
 * input routines. The given argument is the prompt.
746
 */
746
 */
747
void (*getline) (char *);
747
void (*getline_gnome) (char *);
748
748
749
#define MAXSTR 128
749
#define MAXSTR 128
750
extern char inputstr[MAXSTR];
750
extern char inputstr[MAXSTR];

Return to bug 270449