aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2009-04-04 22:36:11 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2009-04-04 22:36:11 +0000
commiteb3a10b05d101a6d237a76d724cf5cd8191d9e59 (patch)
tree6a9ded4514688da56c7aaaef137adaa9498a9928
parent1d26226d9583ad7bee290ca9bba1aa3794e98a53 (diff)
downloadpostgresql-eb3a10b05d101a6d237a76d724cf5cd8191d9e59.tar.gz
postgresql-eb3a10b05d101a6d237a76d724cf5cd8191d9e59.zip
Hmm, baiji thinks we need explicit 'extern' here.
-rw-r--r--src/port/getopt.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/port/getopt.c b/src/port/getopt.c
index 2cc2519116f..1c1ba8e1a8a 100644
--- a/src/port/getopt.c
+++ b/src/port/getopt.c
@@ -1,4 +1,4 @@
-/* $PostgreSQL: pgsql/src/port/getopt.c,v 1.12 2009/04/04 21:55:50 tgl Exp $ */
+/* $PostgreSQL: pgsql/src/port/getopt.c,v 1.13 2009/04/04 22:36:11 tgl Exp $ */
/* This is used by psql under Win32 */
@@ -50,10 +50,19 @@ int opterr = 1, /* if error message should be printed */
optopt; /* character checked for validity */
char *optarg; /* argument associated with option */
+#else
+
+extern int opterr;
+extern int optind;
+extern int optopt;
+extern char *optarg;
+
#endif
#ifndef HAVE_INT_OPTRESET
int optreset; /* reset getopt */
+#else
+extern int optreset;
#endif
#define BADCH (int)'?'