tools/wrc/wrc.c portability breakage
Gerald Pfeifer
pfeifer at dbai.tuwien.ac.at
Sat Dec 7 10:12:29 CST 2002
On Sat, 7 Dec 2002, Dimitrie O. Paun wrote:
>> 2) 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
--
Gerald "Jerry" pfeifer at dbai.tuwien.ac.at http://www.pfeifer.com/gerald/
More information about the wine-devel
mailing list