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

Appearance settings

Commit 443abd8

Browse filesBrowse files
committed
Add externs for optarg/optind where apparently needed. Per Magnus.
1 parent 2899790 commit 443abd8
Copy full SHA for 443abd8

File tree

Expand file treeCollapse file tree

2 files changed

+7
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+7
-2
lines changed

‎contrib/oid2name/oid2name.c

Copy file name to clipboardExpand all lines: contrib/oid2name/oid2name.c
+3-1Lines 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+
extern char *optarg;
17+
1618
#include "libpq-fe.h"
1719

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

‎src/timezone/zic.c

Copy file name to clipboardExpand all lines: src/timezone/zic.c
+4-1Lines 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+
extern int optind;
18+
extern char *optarg;
19+
1720
#include "private.h"
1821
#include "pgtz.h"
1922
#include "tzfile.h"

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.