Skip to content

Commit

Permalink
Add some changes from Edgemaster for MinGW support, see osm2pgsql-dev…
Browse files Browse the repository at this point in the history
  • Loading branch information
martinvoosterhout committed May 28, 2008
1 parent 08a441a commit 471fd4c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Makefile
@@ -1,5 +1,5 @@
PACKAGE:=osm2pgsql
VERSION:=0.53
VERSION:=0.54
SVN:=$(shell date +%Y%m%d)

CC = gcc
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion build_geometry.cpp
Expand Up @@ -23,7 +23,7 @@
#include <iostream>
#include <cstring>

#include <geos_c.h>
#include <geos.h>

#if (GEOS_VERSION_MAJOR==3)
/* geos trunk (3.0.0rc) */
Expand Down
9 changes: 5 additions & 4 deletions sprompt.c
Expand Up @@ -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 <stdio.h>
Expand All @@ -63,9 +62,11 @@

#include <libpq-fe.h>


#ifdef HAVE_TERMIOS_H
#include <termios.h>
#ifdef __MINGW_H
# include <windows.h>
#else
# define HAVE_TERMIOS_H
# include <termios.h>
#endif

extern char *simple_prompt(const char *prompt, int maxlen, int echo);
Expand Down

0 comments on commit 471fd4c

Please sign in to comment.