diff options
author | Tom Lane | 2006-10-19 20:38:48 +0000 |
---|---|---|
committer | Tom Lane | 2006-10-19 20:38:48 +0000 |
commit | 2964aa7fa29626baa06eff32eb66bc77c7757a22 (patch) | |
tree | b70df97b93b13f337ffc9e596204f3105332fce8 | |
parent | cd55581b1a77faf872214442031764fbaec3e05f (diff) |
Add externs for optarg/optind where apparently needed. Per Magnus.
-rw-r--r-- | contrib/oid2name/oid2name.c | 2 | ||||
-rw-r--r-- | src/timezone/zic.c | 3 |
2 files changed, 5 insertions, 0 deletions
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 <getopt.h> #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 <limits.h> #include <locale.h> +extern int optind; +extern char *optarg; + #include "private.h" #include "pgtz.h" #include "tzfile.h" |