Incorrect extern in GNU Chess header

Adam Sampson <[email protected]> Sun, 27 Jan 2008 11:51:36 +0000
Newsgroups gmane.comp.gnu.chess.bugs
Message-ID <[email protected]>
Hi guys,

I've just installed GNU Chess 5.07, and discovered there's an incorrect
extern definition of input_thread in common.h that stops it from
compiling with GCC 4.2.2 (input_thread is actually static). Here's a
patch.

Thanks,

-- 
Adam Sampson <[email protected]>                         <http://offog.org/>

_______________________________________________
Bug-gnu-chess mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnu-chess
fixheader.diff (text/plain, 416 B)
diff -x config.log -x config.status -ru tmp/gnuchess-5.07/src/common.h work/gnuchess-5.07/src/common.h
--- tmp/gnuchess-5.07/src/common.h	2003-06-30 12:28:38.000000000 +0100
+++ work/gnuchess-5.07/src/common.h	2008-01-27 11:15:07.000000000 +0000
@@ -715,8 +715,6 @@
 void DBTest (void);
 
 /* Input thread and thread function */
-#include <pthread.h>
-extern pthread_t input_thread;
 void *input_func(void *);
 
 /*