Re: [HACKERS] Current 6.3 issues - Mailing list pgsql-hackers

From t-ishii@sra.co.jp (Tatsuo Ishii)
Subject Re: [HACKERS] Current 6.3 issues
Date
Msg-id 199802271327.WAA24324@meshsv26.tk.mesh.ad.jp
Whole thread Raw
List pgsql-hackers
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


pgsql-hackers by date:

Previous
From: darcy@druid.net (D'Arcy J.M. Cain)
Date:
Subject: Re: [HACKERS] INT2OID, etc.
Next
From: darcy@druid.net (D'Arcy J.M. Cain)
Date:
Subject: Money type display