On Sat, 7 Dec 2002, Dimitrie O. Paun wrote:
- getopt_long() is non-portable (and does not exist on FreeBSD, for
example).
Sorry, but I don't have *BSD, and I have no idea how you parse long options on BSD. If you tell me, I'd be happy to oblige.
It's the other way around: Not *BSD needs a special treatment, but getopt_long() only exists on GNU systems (it depends on GNU, not the Linux kernel), nowhere else.
A short time fix would be to 1) detect the presence of the getopt.h header using autoconf and only #include that header if it exists, and 2) use getopt_long() only in this case and just use getopt(), else.
(Yes, this reduces functionality on non-GNU systems, but basically it they still will work.)
Alternately, the getopt package needs to become a part of Wine, i.e., imported into Wine CVS.
Gerald