|
12 | 12 | * This is a C implementation of the previous shell script for setting up a
|
13 | 13 | * PostgreSQL cluster location, and should be highly compatible with it.
|
14 | 14 | *
|
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 $ |
16 | 16 | *
|
17 | 17 | * TODO:
|
18 | 18 | * - clean up find_postgres code and return values
|
|
30 | 30 |
|
31 | 31 | #include"postgres_fe.h"
|
32 | 32 |
|
33 |
| -#include"getopt_long.h" |
34 | 33 | #include<dirent.h>
|
35 | 34 | #include<sys/stat.h>
|
36 | 35 | #include<unistd.h>
|
37 | 36 | #include<locale.h>
|
38 |
| - |
39 | 37 | #include<signal.h>
|
40 | 38 |
|
41 | 39 | #include"libpq/pqsignal.h"
|
42 | 40 | #include"mb/pg_wchar.h"
|
| 41 | +#include"getopt_long.h" |
| 42 | + |
| 43 | +#ifndefHAVE_OPTRESET |
| 44 | +intoptreset; |
| 45 | +#endif |
43 | 46 |
|
44 | 47 |
|
45 | 48 | /* version string we expect back from postgres */
|
|