Skip to content

Commit 443abd8

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

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+
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

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+
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy