Skip to content

Commit c36496a

Browse files
committed
Include <getopt.h> if available, to avoid warnings on Windows.
1 parent c87ddba commit c36496a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/bin/pg_resetxlog/pg_resetxlog.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
2424
* Portions Copyright (c) 1994, Regents of the University of California
2525
*
26-
* $PostgreSQL: pgsql/src/bin/pg_resetxlog/pg_resetxlog.c,v 1.24 2004/08/29 16:34:48 tgl Exp $
26+
* $PostgreSQL: pgsql/src/bin/pg_resetxlog/pg_resetxlog.c,v 1.25 2004/11/17 21:37:47 tgl Exp $
2727
*
2828
*-------------------------------------------------------------------------
2929
*/
@@ -36,6 +36,9 @@
3636
#include <sys/time.h>
3737
#include <time.h>
3838
#include <unistd.h>
39+
#ifdef HAVE_GETOPT_H
40+
#include <getopt.h>
41+
#endif
3942

4043
#include "access/xlog.h"
4144
#include "access/xlog_internal.h"

0 commit comments

Comments
 (0)