Hi everyone,

Here are the fixes required to allow GEOS 2.2 branch to compile on
Debian Lenny with GCC 4.3. It's mainly here for reference (to help with
testing PostGIS against older GEOS versions), but it may be worth
applying to GEOS 2.2 SVN even if a release never comes out of it.


ATB,

Mark.

Index: source/io/markup/MarkupSTL.h
===================================================================
--- source/io/markup/MarkupSTL.h	(revision 2224)
+++ source/io/markup/MarkupSTL.h	(working copy)
@@ -35,6 +35,7 @@
 #pragma warning(disable:4786)
 
 #include <string>
+#include <cstring>
 #include <map>
 #include <vector>
 
Index: source/io/ByteOrderValues.cpp
===================================================================
--- source/io/ByteOrderValues.cpp	(revision 2224)
+++ source/io/ByteOrderValues.cpp	(working copy)
@@ -17,6 +17,8 @@
 #include <geos/io.h>
 #include <geos/util.h>
 
+#include <cstring>
+
 namespace geos {
 
 int ByteOrderValues::ENDIAN_BIG = 1;
Index: source/io/StringTokenizer.cpp
===================================================================
--- source/io/StringTokenizer.cpp	(revision 2224)
+++ source/io/StringTokenizer.cpp	(working copy)
@@ -37,6 +37,8 @@
 
 #include <geos/io.h>
 
+#include <cstring>
+
 namespace geos {
 
 StringTokenizer::StringTokenizer(){
Index: source/index/quadtree/DoubleBits.cpp
===================================================================
--- source/index/quadtree/DoubleBits.cpp	(revision 2224)
+++ source/index/quadtree/DoubleBits.cpp	(working copy)
@@ -16,6 +16,8 @@
 #include <geos/indexQuadtree.h>
 #include <geos/util.h>
 
+#include <cstring>
+
 namespace geos {
 
 double
Index: source/capi/geos_c.cpp
===================================================================
--- source/capi/geos_c.cpp	(revision 2224)
+++ source/capi/geos_c.cpp	(working copy)
@@ -17,6 +17,7 @@
 
 #include <stdio.h>
 
+#include <cstring>
 #include <string>
 #include <iostream>
 #include <sstream>
_______________________________________________
geos-devel mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/geos-devel

Reply via email to