From 471fd4c04602e9948d2b620d79b022ad30ec3406 Mon Sep 17 00:00:00 2001 From: martinvoosterhout Date: Wed, 28 May 2008 07:13:34 +0000 Subject: [PATCH] Add some changes from Edgemaster for MinGW support, see #926 git-svn-id: http://svn.openstreetmap.org/applications/utils/export/osm2pgsql@7976 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4 --- Makefile | 4 ++-- build_geometry.cpp | 2 +- sprompt.c | 9 +++++---- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 04a045f90..3d78a1c4f 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ PACKAGE:=osm2pgsql -VERSION:=0.53 +VERSION:=0.54 SVN:=$(shell date +%Y%m%d) CC = gcc @@ -20,7 +20,7 @@ CXXFLAGS += $(shell geos-config --cflags) LDFLAGS += $(shell xml2-config --libs) LDFLAGS += $(shell geos-config --libs) LDFLAGS += -L$(shell pg_config --libdir) -lpq -LDFLAGS += -lbz2 +LDFLAGS += -lbz2 -lz LDFLAGS += -g -lproj LDFLAGS += -lstdc++ LDFLAGS += -lpthread diff --git a/build_geometry.cpp b/build_geometry.cpp index 2504d5985..c74da861e 100644 --- a/build_geometry.cpp +++ b/build_geometry.cpp @@ -23,7 +23,7 @@ #include #include -#include +#include #if (GEOS_VERSION_MAJOR==3) /* geos trunk (3.0.0rc) */ diff --git a/sprompt.c b/sprompt.c index 37ab6bdad..a63c651ea 100644 --- a/sprompt.c +++ b/sprompt.c @@ -52,7 +52,6 @@ * Returns a malloc()'ed string with the input (w/o trailing newline). */ -#define HAVE_TERMIOS_H #define DEVTTY "/dev/tty" #include @@ -63,9 +62,11 @@ #include - -#ifdef HAVE_TERMIOS_H -#include +#ifdef __MINGW_H +# include +#else +# define HAVE_TERMIOS_H +# include #endif extern char *simple_prompt(const char *prompt, int maxlen, int echo);