From 443abd83e5a1ba50140cb5dca4e93c4c7e7be687 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 19 Oct 2006 20:38:48 +0000 Subject: [PATCH] Add externs for optarg/optind where apparently needed. Per Magnus. --- contrib/oid2name/oid2name.c | 4 +++- src/timezone/zic.c | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/contrib/oid2name/oid2name.c b/contrib/oid2name/oid2name.c index 98d106701e..79df423b55 100644 --- a/contrib/oid2name/oid2name.c +++ b/contrib/oid2name/oid2name.c @@ -4,7 +4,7 @@ * * Originally by * B. Palmer, bpalmer@crimelabs.net 1-17-2001 - * $PostgreSQL: pgsql/contrib/oid2name/oid2name.c,v 1.29 2006/03/11 04:38:30 momjian Exp $ + * $PostgreSQL: pgsql/contrib/oid2name/oid2name.c,v 1.30 2006/10/19 20:38:48 tgl Exp $ */ #include "postgres_fe.h" @@ -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 039f6f73e0..f949f08784 100644 --- a/src/timezone/zic.c +++ b/src/timezone/zic.c @@ -3,7 +3,7 @@ * 1996-06-05 by Arthur David Olson (arthur_david_olson@nih.gov). * * IDENTIFICATION - * $PostgreSQL: pgsql/src/timezone/zic.c,v 1.17 2006/10/16 19:58:27 tgl Exp $ + * $PostgreSQL: pgsql/src/timezone/zic.c,v 1.18 2006/10/19 20:38:48 tgl Exp $ */ #include "postgres.h" @@ -14,6 +14,9 @@ #include #include +extern int optind; +extern char *optarg; + #include "private.h" #include "pgtz.h" #include "tzfile.h" -- 2.40.0