summaryrefslogtreecommitdiffstats
path: root/extra/gnuchess/gnuchess-glibc210.patch
diff options
context:
space:
mode:
authorsibel <lesibel at free dot fr>2010-07-25 09:04:34 +0200
committersibel <lesibel at free dot fr>2010-07-25 09:04:34 +0200
commitdaaebbf624c86443f26dd2c369b18400060d1ea4 (patch)
tree25e3aee9bc0a0c846d4c8f73b98964c326433298 /extra/gnuchess/gnuchess-glibc210.patch
parentce0803f5cd408814cd47e28b1347273776bfc9d7 (diff)
downloadnutyx-pakxe-daaebbf624c86443f26dd2c369b18400060d1ea4.tar.gz
nutyx-pakxe-daaebbf624c86443f26dd2c369b18400060d1ea4.tar.bz2
nutyx-pakxe-daaebbf624c86443f26dd2c369b18400060d1ea4.tar.xz
nutyx-pakxe-daaebbf624c86443f26dd2c369b18400060d1ea4.zip
ajout de gnuchess#5.07-1
Diffstat (limited to 'extra/gnuchess/gnuchess-glibc210.patch')
-rw-r--r--extra/gnuchess/gnuchess-glibc210.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/extra/gnuchess/gnuchess-glibc210.patch b/extra/gnuchess/gnuchess-glibc210.patch
new file mode 100644
index 000000000..3c191eec9
--- /dev/null
+++ b/extra/gnuchess/gnuchess-glibc210.patch
@@ -0,0 +1,39 @@
+--- src/common.h.old 2009-05-28 10:26:58.000000000 +0200
++++ src/common.h 2009-05-28 11:03:31.000000000 +0200
+@@ -745,7 +745,7 @@
+ * Input routine, initialized to one of the specific
+ * input routines. The given argument is the prompt.
+ */
+-void (*getline) (char *);
++void (*mygetline) (char *);
+
+ #define MAXSTR 128
+ extern char inputstr[MAXSTR];
+--- src/input.c.old 2009-05-28 10:27:06.000000000 +0200
++++ src/input.c 2009-05-28 11:04:38.000000000 +0200
+@@ -127,7 +127,7 @@
+ (RealGameCnt+1)/2 + 1 );
+ }
+ pthread_mutex_lock(&input_mutex);
+- getline(prompt);
++ mygetline(prompt);
+ input_status = INPUT_AVAILABLE;
+ pthread_cond_signal(&input_cond);
+ pthread_mutex_unlock(&input_mutex);
+@@ -173,13 +173,13 @@
+ {
+ #ifdef HAVE_LIBREADLINE
+ if (isatty(STDIN_FILENO)) {
+- getline = getline_readline;
++ mygetline = getline_readline;
+ using_history();
+ } else {
+- getline = getline_standard;
++ mygetline = getline_standard;
+ }
+ #else
+- getline = getline_standard;
++ mygetline = getline_standard;
+ #endif
+ /* Start input thread */
+ pthread_create(&input_thread, NULL, input_func, NULL);