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

Commit443abd8

Browse files
committed
Add externs for optarg/optind where apparently needed. Per Magnus.
1 parent2899790 commit443abd8

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

‎contrib/oid2name/oid2name.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Originally by
66
* B. Palmer, bpalmer@crimelabs.net 1-17-2001
7-
* $PostgreSQL: pgsql/contrib/oid2name/oid2name.c,v 1.29 2006/03/11 04:38:30 momjian Exp $
7+
* $PostgreSQL: pgsql/contrib/oid2name/oid2name.c,v 1.30 2006/10/19 20:38:48 tgl Exp $
88
*/
99
#include"postgres_fe.h"
1010

@@ -13,6 +13,8 @@
1313
#include<getopt.h>
1414
#endif
1515

16+
externchar*optarg;
17+
1618
#include"libpq-fe.h"
1719

1820
/* an extensible array to keep track of elements to show */

‎src/timezone/zic.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* 1996-06-05 by Arthur David Olson (arthur_david_olson@nih.gov).
44
*
55
* IDENTIFICATION
6-
* $PostgreSQL: pgsql/src/timezone/zic.c,v 1.17 2006/10/16 19:58:27 tgl Exp $
6+
* $PostgreSQL: pgsql/src/timezone/zic.c,v 1.18 2006/10/19 20:38:48 tgl Exp $
77
*/
88

99
#include"postgres.h"
@@ -14,6 +14,9 @@
1414
#include<limits.h>
1515
#include<locale.h>
1616

17+
externintoptind;
18+
externchar*optarg;
19+
1720
#include"private.h"
1821
#include"pgtz.h"
1922
#include"tzfile.h"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp