At 11:27 AM 98.2.27 +0100, Michael Meskes wrote:
>> Another problem is SunOS does not have getopt(). Possible solutions
>> might be:
>> 
>> a. steal getopt(3) source from FreeBSD
>> b. rewrite main.c so that it does not use getopt().
>> 
>> I would prefer (a) since it would be easier:-) How do you think?
>
>Ehem, how do we solve this in the backend? It does use getopt, too.

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


Fri, 27 Feb 1998 22:30:13 +0900
t-ishii@sra.co.jp (Tatsuo Ishii)
Re: [HACKERS] Current 6.3 issues