Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 88dd65a

Browse files
committed
Fix lack of optreset.
1 parent 48adc0b commit 88dd65a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/bin/initdb/initdb.c

+6-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* This is a C implementation of the previous shell script for setting up a
1313
* PostgreSQL cluster location, and should be highly compatible with it.
1414
*
15-
* $Header: /cvsroot/pgsql/src/bin/initdb/initdb.c,v 1.2 2003/11/10 22:52:10 momjian Exp $
15+
* $Header: /cvsroot/pgsql/src/bin/initdb/initdb.c,v 1.3 2003/11/13 01:09:24 tgl Exp $
1616
*
1717
* TODO:
1818
* - clean up find_postgres code and return values
@@ -30,16 +30,19 @@
3030

3131
#include "postgres_fe.h"
3232

33-
#include "getopt_long.h"
3433
#include <dirent.h>
3534
#include <sys/stat.h>
3635
#include <unistd.h>
3736
#include <locale.h>
38-
3937
#include <signal.h>
4038

4139
#include "libpq/pqsignal.h"
4240
#include "mb/pg_wchar.h"
41+
#include "getopt_long.h"
42+
43+
#ifndef HAVE_OPTRESET
44+
int optreset;
45+
#endif
4346

4447

4548
/* version string we expect back from postgres */

0 commit comments

Comments
 (0)