On Thu, 17 Apr 2003, Gerald Pfeifer wrote:
Assume we are on a system which does have /usr/local/include/getopt.h, and support for getopt_long, but where getopt_long is _not_ in libc.
Our configure then diagnoses
#define HAVE_GETOPT_H 1 /* #undef HAVE_GETOPT_LONG */
which leads a compilation error for tools/wrc/wrc.c which includes "wine/port.h" and <getopt.h>, for _both_ define struct option.
I noticed the following fix by Alexandre, which is much nicer than the original hack of mine:
revision 1.38 date: 2003/04/20 02:56:14; author: julliard; state: Exp; lines: +3 -0 Check for struct option independently of the getopt_long check.
Thanks!
Gerald