Getopt - was Re: problem on the Cygwin port

Steven Edwards steven_ed4153 at
Thu Feb 12 15:25:55 CST 2004

Hi Christian,
--- Christian Costa <titan.costa at> wrote:
> I'm not sure but I remember I had a similar problem when I tried to 
> compile wine on cygwin.
> In my case, the get_opt_long function seemed broken and I modified
> the 
> config.h to force the use
> our own implementation of this function. This has fixed my problem.

Thanks that fixed it. I doubt Alexandre will accept this as its a
cygwin problem but here is a patch in any case.

Work around broken getopt implementation on Cygwin

Index: wine/include/wine/port.h
RCS file: /home/wine/wine/include/wine/port.h,v
retrieving revision 1.46
diff -u -r1.46 port.h
--- wine/include/wine/port.h	8 Jan 2004 05:07:06 -0000	1.46
+++ wine/include/wine/port.h	12 Feb 2004 21:23:22 -0000
@@ -199,7 +199,7 @@
+#if !defined(HAVE_GETOPT_LONG) || defined (__CYGWIN__)
 extern char *optarg;
 extern int optind;
 extern int opterr;

Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.

More information about the wine-devel mailing list