Skip to content
Snippets Groups Projects
Commit eb3a10b0 authored by Tom Lane's avatar Tom Lane
Browse files

Hmm, baiji thinks we need explicit 'extern' here.

parent 1d26226d
No related branches found
No related tags found
No related merge requests found
/* $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 */ /* This is used by psql under Win32 */
...@@ -50,10 +50,19 @@ int opterr = 1, /* if error message should be printed */ ...@@ -50,10 +50,19 @@ int opterr = 1, /* if error message should be printed */
optopt; /* character checked for validity */ optopt; /* character checked for validity */
char *optarg; /* argument associated with option */ char *optarg; /* argument associated with option */
#else
extern int opterr;
extern int optind;
extern int optopt;
extern char *optarg;
#endif #endif
#ifndef HAVE_INT_OPTRESET #ifndef HAVE_INT_OPTRESET
int optreset; /* reset getopt */ int optreset; /* reset getopt */
#else
extern int optreset;
#endif #endif
#define BADCH (int)'?' #define BADCH (int)'?'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment