Skip to content

Commit 6b198d6

Browse files
committed
Add missing extern for optind.
1 parent 3b7ca96 commit 6b198d6

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/bin/pg_resetxlog/pg_resetxlog.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
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
*/
@@ -42,6 +42,12 @@
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 */
@@ -62,8 +68,6 @@
6268

6369
/******************** end of stuff copied from xlog.c ********************/
6470

65-
#define _(x) gettext((x))
66-
6771
static char XLogDir[MAXPGPATH];
6872
static char ControlFilePath[MAXPGPATH];
6973

@@ -81,9 +85,6 @@ static void KillExistingXLOG(void);
8185
static void WriteEmptyXLOG(void);
8286
static void usage(void);
8387

84-
extern char *optarg;
85-
86-
8788

8889
int
8990
main(int argc, char *argv[])

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy