But this isn't declared in postmaster.c either. ecpg.c does include
unistd.h if getopt.h does not exist and I think unistd.h is the one that
puts the getopt stuff into postmaster.
Michael
--
Dr. Michael Meskes, Project-Manager | topsystem Systemhaus GmbH
meskes@topsystem.de | Europark A2, Adenauerstr. 20
meskes@debian.org | 52146 Wuerselen
Go SF49ers! Go Rhein Fire! | Tel: (+49) 2405/4670-44
Use Debian GNU/Linux! | Fax: (+49) 2405/4670-10
> -----Original Message-----
> From: t-ishii@sra.co.jp [SMTP:t-ishii@sra.co.jp]
> Sent: Friday, February 27, 1998 2:30 PM
> To: Michael Meskes
> Cc: pgsql-hackers@postgresql.org
> Subject: Re: [HACKERS] Current 6.3 issues
>
> Sorry, I was wrong. Maybe I saw a dream:-)
> The truth is SunOS does *have* getopt() but does not have getopt.h.
> So we need to declare followings somewhere in ecpg.c.
>
> extern char *optarg;
> extern int optind;
> ---
> Tatsuo Ishii
> t-ishii@sra.co.jp