aboutsummaryrefslogtreecommitdiff
path: root/src/bin/pg_dump/pg_restore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/pg_dump/pg_restore.c')
-rw-r--r--src/bin/pg_dump/pg_restore.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/bin/pg_dump/pg_restore.c b/src/bin/pg_dump/pg_restore.c
index 7e446ac21f4..546b90c2508 100644
--- a/src/bin/pg_dump/pg_restore.c
+++ b/src/bin/pg_dump/pg_restore.c
@@ -67,14 +67,7 @@
#ifdef HAVE_GETOPT_H
#include <getopt.h>
-#else
-#ifdef HAVE_OPTARG_DECL
-#include <unistd.h>
-#else
-extern char *optarg;
-extern int optind, opterr, optopt;
-#endif /* HAVE_OPTARG_DECL */
-#endif /* HAVE_GETOPT_H */
+#endif
/* Forward decls */
static void usage(const char *progname);
@@ -120,6 +113,8 @@ int main(int argc, char **argv)
int c;
Archive* AH;
char *fileSpec = NULL;
+ extern int optind;
+ extern char *optarg;
opts = NewRestoreOptions();