From: Paul Ramsey Date: Sun, 20 Dec 2009 04:42:53 +0000 (+0000) Subject: Minor changes to header inclusions. X-Git-Tag: 1.5.0b1~64 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ef3985278ca2503e9a70238f757f298596d2ae7b;p=postgis Minor changes to header inclusions. git-svn-id: http://svn.osgeo.org/postgis/trunk@5037 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/loader/getopt.c b/loader/getopt.c index 21c67f05a..834dac07b 100644 --- a/loader/getopt.c +++ b/loader/getopt.c @@ -2,9 +2,12 @@ ** @(#)getopt.c 2.5 (smail) 9/15/87 */ +#include "../postgis_config.h" #include #include +#ifdef HAVE_UNISTD_H #include +#endif #include "getopt.h" /* diff --git a/loader/pgsql2shp.c b/loader/pgsql2shp.c index 759c9ba98..cfccf5c0e 100644 --- a/loader/pgsql2shp.c +++ b/loader/pgsql2shp.c @@ -12,14 +12,12 @@ * * PostGIS to Shapefile converter * - * Original Author: Jeff Lounsbury, jeffloun@refractions.net - * - * Maintainer: Sandro Santilli, strk@refractions.net + * Original Author: Jeff Lounsbury + * Maintainer: Sandro Santilli * **********************************************************************/ -static char rcsid[] = - "$Id$"; +static char rcsid[] = "$Id$"; #include "../postgis_config.h" @@ -32,16 +30,20 @@ static char rcsid[] = /* Solaris9 does not provide stdint.h */ /* #include */ #include -#include "libpq-fe.h" -#include "shapefil.h" -#include "getopt.h" #include // for getpid() -#include // for getpid() and getopt + +#ifdef HAVE_UNISTD_H // for getpid() and getopt +#include +#endif #ifdef __CYGWIN__ #include #endif +#include "libpq-fe.h" +#include "shapefil.h" +#include "getopt.h" + #include "../liblwgeom/liblwgeom.h" /* diff --git a/loader/shp2pgsql-core.h b/loader/shp2pgsql-core.h index c6eded80e..783eff7fb 100644 --- a/loader/shp2pgsql-core.h +++ b/loader/shp2pgsql-core.h @@ -4,12 +4,13 @@ * PostGIS - Spatial Types for PostgreSQL * http://postgis.refractions.net * Copyright 2001-2003 Refractions Research Inc. - * Copyright 2009 Paul Ramsey + * Copyright 2009 Paul Ramsey * Copyright 2009 Mark Cave-Ayland * * This is free software; you can redistribute and/or modify it under * the terms of the GNU General Public Licence. See the COPYING file. - */ + * + **********************************************************************/ #include #include