Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit88dd65a

Browse files
committed
Fix lack of optreset.
1 parent48adc0b commit88dd65a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

‎src/bin/initdb/initdb.c

Lines changed: 6 additions & 3 deletions
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+
#ifndefHAVE_OPTRESET
44+
intoptreset;
45+
#endif
4346

4447

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp