From: Tom Lane Date: Thu, 13 Nov 2003 01:09:24 +0000 (+0000) Subject: Fix lack of optreset. X-Git-Tag: REL8_0_0BETA1~1706 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=88dd65ae9fe580dd800edcc4c2e84af7461a3165;p=postgresql Fix lack of optreset. --- diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c index 66aaa8107a..e5bd3e3bd8 100644 --- a/src/bin/initdb/initdb.c +++ b/src/bin/initdb/initdb.c @@ -12,7 +12,7 @@ * This is a C implementation of the previous shell script for setting up a * PostgreSQL cluster location, and should be highly compatible with it. * - * $Header: /cvsroot/pgsql/src/bin/initdb/initdb.c,v 1.2 2003/11/10 22:52:10 momjian Exp $ + * $Header: /cvsroot/pgsql/src/bin/initdb/initdb.c,v 1.3 2003/11/13 01:09:24 tgl Exp $ * * TODO: * - clean up find_postgres code and return values @@ -30,16 +30,19 @@ #include "postgres_fe.h" -#include "getopt_long.h" #include #include #include #include - #include #include "libpq/pqsignal.h" #include "mb/pg_wchar.h" +#include "getopt_long.h" + +#ifndef HAVE_OPTRESET +int optreset; +#endif /* version string we expect back from postgres */