GCC 4 compilation error

Charles Peng <[email protected]> Sun, 3 May 2009 10:17:05 +0800
Newsgroups gmane.comp.gnu.chess.bugs
Message-ID <20090503021705.GA19412@pc>
Hi all,

GCC 4 does not compile gnuchess 5.07.
I think this trivial patch solves the problem:

diff -uprN gnuchess-5.07.orig/src/common.h gnuchess-5.07/src/common.h
--- gnuchess-5.07.orig/src/common.h	2009-05-02 21:50:59.000000000 +0800
+++ gnuchess-5.07/src/common.h	2009-05-02 21:51:14.000000000 +0800
@@ -716,7 +716,6 @@ void DBTest (void);
 
 /* Input thread and thread function */
 #include <pthread.h>
-extern pthread_t input_thread;
 void *input_func(void *);
 
 /*

Regards,
Charles