tags 673567 + patch
thanks

Hi,

Attached is a patch which will hopefully fix this on all the affected
architectures.  Only tested this myself on kfreebsd-i386 though.

Thanks,
Regards,
-- 
Steven Chamberlain
ste...@pyro.eu.org
Description: fix to build with GCC 4.7
 Must include <unistd.h> where needed, because GCC 4.7 has stopped including
 it throughout much of the standard library.
 .
 See http://gcc.gnu.org/gcc-4.7/porting_to.html
Author: Steven Chamberlain <ste...@pyro.eu.org>
Bug-Debian: http://bugs.debian.org/673567

--- qgis-1.7.4+1.7.5~20120320.orig/src/core/spatialindex/tools/TemporaryFile.cc	2012-05-19 21:42:30.010157000 +0100
+++ qgis-1.7.4+1.7.5~20120320/src/core/spatialindex/tools/TemporaryFile.cc	2012-05-19 21:42:34.797198134 +0100
@@ -20,6 +20,7 @@
 //    mha...@gmail.com
 
 #include <stdio.h>
+#include <unistd.h>
 
 #include <Tools.h>
 
--- qgis-1.7.4+1.7.5~20120320.orig/src/core/spatialindex/storagemanager/DiskStorageManager.cc	2012-03-17 13:48:08.000000000 +0000
+++ qgis-1.7.4+1.7.5~20120320/src/core/spatialindex/storagemanager/DiskStorageManager.cc	2012-05-19 21:43:14.837512956 +0100
@@ -25,6 +25,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <stdio.h>
+#include <unistd.h>
 #include <cstring>
 
 #ifdef WIN32

Reply via email to