Thread: RE: [HACKERS] Current 6.3 issues

RE: [HACKERS] Current 6.3 issues

From
t-ishii@sra.co.jp (Tatsuo Ishii)
Date:
At  2:52 PM 98.2.27 +0100, Meskes, Michael wrote:
>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.

I see declarations of optarg and optind in backend/postmaster/postmaster.c
around line 216 in Feb 28 snapshot.
---
Tatsuo Ishii
t-ishii@sra.co.jp


Re: [HACKERS] Current 6.3 issues

From
Michael Meskes
Date:
Yes, you're right. This should be changed in ecpg.c, too. Could you please
submit a patch for a version that works for you?

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

Re: [HACKERS] Current 6.3 issues

From
t-ishii@sra.co.jp
Date:
>Yes, you're right. This should be changed in ecpg.c, too. Could you please
>submit a patch for a version that works for you?

Sure. I will submit patches the day after tomorrow (sorry, I don't have
time for that now).
--
Tatsuo Ishii
t-ishii@sra.co.jp

Re: [HACKERS] Current 6.3 issues

From
t-ishii@sra.co.jp
Date:
>Yes, you're right. This should be changed in ecpg.c, too. Could you please
>submit a patch for a version that works for you?

Here it is.
--
Tatsuo Ishii
t-ishii@sra.co.jp
--------------------------- cut here ---------------------------
*** ecpg.c.orig    Fri Feb 27 21:59:06 1998
--- ecpg.c    Thu Mar  5 10:36:10 1998
***************
*** 9,14 ****
--- 9,16 ----
  #include <getopt.h>
  #else
  #include <unistd.h>
+ extern int optind;
+ extern char *optarg;
  #endif
  #include <stdlib.h>
  #if defined(HAVE_STRING_H)