aboutsummaryrefslogtreecommitdiff
path: root/contrib/pg_archivecleanup/pg_archivecleanup.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/pg_archivecleanup/pg_archivecleanup.c')
-rw-r--r--contrib/pg_archivecleanup/pg_archivecleanup.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/contrib/pg_archivecleanup/pg_archivecleanup.c b/contrib/pg_archivecleanup/pg_archivecleanup.c
index f12331a62ec..7b5484bb6ac 100644
--- a/contrib/pg_archivecleanup/pg_archivecleanup.c
+++ b/contrib/pg_archivecleanup/pg_archivecleanup.c
@@ -17,20 +17,9 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
-
-#ifndef WIN32
#include <sys/time.h>
-#include <unistd.h>
-
-#ifdef HAVE_GETOPT_H
-#include <getopt.h>
-#endif
-#else /* WIN32 */
-extern int getopt(int argc, char *const argv[], const char *optstring);
-#endif /* ! WIN32 */
-extern char *optarg;
-extern int optind;
+#include "pg_getopt.h"
const char *progname;