diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-11-17 21:37:47 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-11-17 21:37:47 +0000 |
commit | c36496a1011e1b66947173dba4eefdec2a95669b (patch) | |
tree | e4c8b6e5b7564324c436bfbd2b04a4b55ebb6651 | |
parent | c87ddbafe434479c48e368e530b34560324d2520 (diff) | |
download | postgresql-c36496a1011e1b66947173dba4eefdec2a95669b.tar.gz postgresql-c36496a1011e1b66947173dba4eefdec2a95669b.zip |
Include <getopt.h> if available, to avoid warnings on Windows.
-rw-r--r-- | src/bin/pg_resetxlog/pg_resetxlog.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/pg_resetxlog/pg_resetxlog.c b/src/bin/pg_resetxlog/pg_resetxlog.c index fdbd527edcd..720c28f1262 100644 --- a/src/bin/pg_resetxlog/pg_resetxlog.c +++ b/src/bin/pg_resetxlog/pg_resetxlog.c @@ -23,7 +23,7 @@ * Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/bin/pg_resetxlog/pg_resetxlog.c,v 1.24 2004/08/29 16:34:48 tgl Exp $ + * $PostgreSQL: pgsql/src/bin/pg_resetxlog/pg_resetxlog.c,v 1.25 2004/11/17 21:37:47 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -36,6 +36,9 @@ #include <sys/time.h> #include <time.h> #include <unistd.h> +#ifdef HAVE_GETOPT_H +#include <getopt.h> +#endif #include "access/xlog.h" #include "access/xlog_internal.h" |