File: 10-missing-includes.dpatch

package info (click to toggle)
osm2pgsql 0.52.20080408-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 348 kB
  • ctags: 440
  • sloc: ansic: 3,963; sh: 469; cpp: 339; makefile: 125
file content (17 lines) | stat: -rw-r--r-- 591 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /bin/sh /usr/share/dpatch/dpatch-run
## 10-missing-includes.dpatch by Andreas Putzo <andreas@putzo.net>
##
## DP: Add missing includes to compile with gcc-4.3. Patch by Chris Lamb <chris@chris-lamb.co.uk>.

@DPATCH@
diff -urNad osm2pgsql-0.52.20080408~/build_geometry.cpp osm2pgsql-0.52.20080408/build_geometry.cpp
--- osm2pgsql-0.52.20080408~/build_geometry.cpp	2007-12-10 22:02:04.000000000 +0000
+++ osm2pgsql-0.52.20080408/build_geometry.cpp	2008-04-12 20:31:38.000000000 +0000
@@ -22,6 +22,7 @@
 
 #include <iostream>
 #include <cstring>
+#include <cstdlib>
 
 #include <geos_c.h>