summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2006-10-19 20:38:48 +0000
committerTom Lane2006-10-19 20:38:48 +0000
commit2964aa7fa29626baa06eff32eb66bc77c7757a22 (patch)
treeb70df97b93b13f337ffc9e596204f3105332fce8
parentcd55581b1a77faf872214442031764fbaec3e05f (diff)
Add externs for optarg/optind where apparently needed. Per Magnus.
-rw-r--r--contrib/oid2name/oid2name.c2
-rw-r--r--src/timezone/zic.c3
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"