2323 * Portions Copyright (c) 1996-2003, 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.16 2004/02/17 03:45:17 momjian Exp $
26+ * $PostgreSQL: pgsql/src/bin/pg_resetxlog/pg_resetxlog.c,v 1.17 2004/03/22 16:46:28 tgl Exp $
2727 *
2828 *-------------------------------------------------------------------------
2929 */
4242#include "catalog/catversion.h"
4343#include "catalog/pg_control.h"
4444
45+ extern int optind ;
46+ extern char * optarg ;
47+
48+ #define _ (x ) gettext((x))
49+
50+
4551/******************** stuff copied from xlog.c ********************/
4652
4753/* Increment an xlogid/segment pair */
6268
6369/******************** end of stuff copied from xlog.c ********************/
6470
65- #define _ (x ) gettext((x))
66-
6771static char XLogDir [MAXPGPATH ];
6872static char ControlFilePath [MAXPGPATH ];
6973
@@ -81,9 +85,6 @@ static void KillExistingXLOG(void);
8185static void WriteEmptyXLOG (void );
8286static void usage (void );
8387
84- extern char * optarg ;
85-
86-
8788
8889int
8990main (int argc ,char * argv [])