Centralize getopt-related declarations in a new header file pg_getopt.h.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 15 Feb 2014 19:31:30 +0000 (14:31 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 15 Feb 2014 19:31:30 +0000 (14:31 -0500)
commit60ff2fdd9970ba29f5267317a5e7354d2658c1e5
tree1bf03f09220a25a87f2a3bbfda5391a722d83541
parent32be1c8e900b89a89ec5e3a064c6b6010869d062
Centralize getopt-related declarations in a new header file pg_getopt.h.

We used to have externs for getopt() and its API variables scattered
all over the place.  Now that we find we're going to need to tweak the
variable declarations for Cygwin, it seems like a good idea to have
just one place to tweak.

In this commit, the variables are declared "#ifndef HAVE_GETOPT_H".
That may or may not work everywhere, but we'll soon find out.

Andres Freund
19 files changed:
contrib/oid2name/oid2name.c
contrib/pg_archivecleanup/pg_archivecleanup.c
contrib/pg_standby/pg_standby.c
contrib/pg_upgrade/option.c
contrib/pgbench/pgbench.c
contrib/vacuumlo/vacuumlo.c
src/backend/bootstrap/bootstrap.c
src/backend/postmaster/postmaster.c
src/backend/tcop/postgres.c
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_restore.c
src/bin/pg_resetxlog/pg_resetxlog.c
src/bin/psql/startup.c
src/include/getopt_long.h
src/include/pg_getopt.h [new file with mode: 0644]
src/include/port.h
src/port/getopt.c
src/test/isolation/isolationtester.c
src/timezone/zic.c