summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2006-10-19 20:38:48 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2006-10-19 20:38:48 +0000
commit443abd83e5a1ba50140cb5dca4e93c4c7e7be687 (patch)
treee2e3db421c63cdb3b6e523936b2a105623427aeb /contrib
parent28997903a13c5ef2ac294398f047a8cbbc74d378 (diff)
Add externs for optarg/optind where apparently needed. Per Magnus.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/oid2name/oid2name.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/oid2name/oid2name.c b/contrib/oid2name/oid2name.c
index 98d106701e3..79df423b55d 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 <getopt.h>
#endif
+extern char *optarg;
+
#include "libpq-fe.h"
/* an extensible array to keep track of elements to show */