]> granicus.if.org Git - postgis/commitdiff
Modified both loader/dumper to use gnu getopt.c instead of standar one
authorJeff Lounsbury <jeffloun@refractions.net>
Mon, 22 Oct 2001 20:12:21 +0000 (20:12 +0000)
committerJeff Lounsbury <jeffloun@refractions.net>
Mon, 22 Oct 2001 20:12:21 +0000 (20:12 +0000)
since getopt was not the same on solaris and linux.

git-svn-id: http://svn.osgeo.org/postgis/trunk@87 b70326c6-7e19-0410-871a-916f4a2858ee

loader/pgsql2shp.c
loader/shp2pgsql.c

index 6c56109ed78c88bcaa75699550183df721cc2b3e..c9963adea5b8212ec440ac7caa4fa3010340de08 100644 (file)
@@ -1,13 +1,13 @@
 //compile line for Refractions' Solaris machine...
 //gcc -g -I/data3/postgresql-7.1.2/include -L/data3/postgresql-7.1.2/lib dump.c ../shapelib-1.2.8/shpopen.o ../shapelib-1.2.8/dbfopen.o -o dump -lpq
 
-#include <getopt.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <math.h>
 #include "libpq-fe.h"
 #include "shapefil.h"
+#include "getopt.h"
 
 static void exit_nicely(PGconn *conn){
        PQfinish(conn);
index 9e47cadb2debb7af9bd2caa09bfb36c853ac05e1..9feb949addb9d55213586c8bc27f4b0498ecf360 100644 (file)
@@ -25,7 +25,6 @@
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
-#include <getopt.h>
 
 typedef struct {double x, y;} Point;