tags 667202 + patch
thanks
diff -Nru hoichess-0.10.3/debian/changelog hoichess-0.10.3/debian/changelog
--- hoichess-0.10.3/debian/changelog    2011-10-13 20:11:01.000000000 +0000
+++ hoichess-0.10.3/debian/changelog    2012-05-04 06:12:58.000000000 +0000
@@ -1,3 +1,10 @@
+hoichess (0.10.3-6.1) unstable; urgency=low
+
+  * Non maintainer upload.
+  * Fix build failure with GCC 4.7. Closes: #667202.
+
+ -- Matthias Klose <[email protected]>  Fri, 04 May 2012 08:12:09 +0200
+
 hoichess (0.10.3-6) unstable; urgency=low
 
   * Standards Version update to 3.9.2
diff -Nru hoichess-0.10.3/debian/patches/ftbfs-gcc-4.7.diff 
hoichess-0.10.3/debian/patches/ftbfs-gcc-4.7.diff
--- hoichess-0.10.3/debian/patches/ftbfs-gcc-4.7.diff   1970-01-01 
00:00:00.000000000 +0000
+++ hoichess-0.10.3/debian/patches/ftbfs-gcc-4.7.diff   2012-05-04 
06:13:32.000000000 +0000
@@ -0,0 +1,24 @@
+Index: hoichess-0.10.3/src/main.cc
+===================================================================
+--- hoichess-0.10.3.orig/src/main.cc   2007-12-18 20:50:48.000000000 +0000
++++ hoichess-0.10.3/src/main.cc        2012-05-04 06:12:04.719708689 +0000
+@@ -28,6 +28,7 @@
+ #endif
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <unistd.h>
+ 
+ #include "common.h"
+ #include "compile.h"
+Index: hoichess-0.10.3/src/shell.cc
+===================================================================
+--- hoichess-0.10.3.orig/src/shell.cc  2007-12-18 20:50:48.000000000 +0000
++++ hoichess-0.10.3/src/shell.cc       2012-05-04 06:13:29.699711852 +0000
+@@ -27,6 +27,7 @@
+ #include "shell.h"
+ 
+ #include <errno.h> 
++#include <unistd.h> 
+ #ifdef HAVE_READLINE
+ # include <readline/readline.h>
+ # include <readline/history.h>
diff -Nru hoichess-0.10.3/debian/patches/series 
hoichess-0.10.3/debian/patches/series
--- hoichess-0.10.3/debian/patches/series       2011-10-13 19:27:10.000000000 
+0000
+++ hoichess-0.10.3/debian/patches/series       2012-05-04 06:11:31.000000000 
+0000
@@ -2,3 +2,4 @@
 02-Makefile.local
 03-config.h
 04-debug_printconfig.h
+ftbfs-gcc-4.7.diff

Reply via email to