projects
/
users
/
simon
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
526b07f
)
Hmm, baiji thinks we need explicit 'extern' here.
author
Tom Lane
<tgl@sss.pgh.pa.us>
Sat, 4 Apr 2009 22:36:11 +0000
(22:36 +0000)
committer
Tom Lane
<tgl@sss.pgh.pa.us>
Sat, 4 Apr 2009 22:36:11 +0000
(22:36 +0000)
src/port/getopt.c
patch
|
blob
|
blame
|
history
diff --git
a/src/port/getopt.c
b/src/port/getopt.c
index 659f0646000b100d42705be81b17964e0245e519..0ac295b1c62c465441216354060df6aa1a309c56 100644
(file)
--- a/
src/port/getopt.c
+++ b/
src/port/getopt.c
@@
-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)'?'