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);