From: Tom Lane Date: Thu, 19 Oct 2006 20:38:48 +0000 (+0000) Subject: Add externs for optarg/optind where apparently needed. Per Magnus. X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=2964aa7fa29626baa06eff32eb66bc77c7757a22;p=users%2Fbernd%2Fpostgres.git Add externs for optarg/optind where apparently needed. Per Magnus. --- diff --git a/contrib/oid2name/oid2name.c b/contrib/oid2name/oid2name.c index 5b07f69f82..bb6444600d 100644 --- a/contrib/oid2name/oid2name.c +++ b/contrib/oid2name/oid2name.c @@ -13,6 +13,8 @@ #include #endif +extern char *optarg; + #include "libpq-fe.h" /* an extensible array to keep track of elements to show */ diff --git a/src/timezone/zic.c b/src/timezone/zic.c index f7a709f6ea..23bc2a14e7 100644 --- a/src/timezone/zic.c +++ b/src/timezone/zic.c @@ -14,6 +14,9 @@ #include #include +extern int optind; +extern char *optarg; + #include "private.h" #include "pgtz.h" #include "tzfile.h"