Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit eb3a10b

Browse files
committed
Hmm, baiji thinks we need explicit 'extern' here.
1 parent 1d26226 commit eb3a10b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/port/getopt.c

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/port/getopt.c,v 1.12 2009/04/04 21:55:50 tgl Exp $ */
1+
/* $PostgreSQL: pgsql/src/port/getopt.c,v 1.13 2009/04/04 22:36:11 tgl Exp $ */
22

33
/* This is used by psql under Win32 */
44

@@ -50,10 +50,19 @@ int opterr = 1, /* if error message should be printed */
5050
optopt; /* character checked for validity */
5151
char *optarg; /* argument associated with option */
5252

53+
#else
54+
55+
extern int opterr;
56+
extern int optind;
57+
extern int optopt;
58+
extern char *optarg;
59+
5360
#endif
5461

5562
#ifndef HAVE_INT_OPTRESET
5663
int optreset; /* reset getopt */
64+
#else
65+
extern int optreset;
5766
#endif
5867

5968
#define BADCH (int)'?'

0 commit comments

Comments
 (0)