tools/wrc/wrc.c portability breakage

Gerald Pfeifer pfeifer at dbai.tuwien.ac.at
Sat Dec 7 04:48:06 CST 2002


The following patch broke portability of tools/wrc/wrc.c:

  revision 1.18
  date: 2002/12/06 19:49:36;  author: julliard;  state: Exp;  lines: +78 -10
  Dimitrie O. Paun <dpaun at rogers.com>
  Make wrc command line compatible with windres.

1) getopt() is supposed to to come from <unistd.h>, and <getopt.h> is
a non-standard header.

2) getopt_long() is non-portable (and does not exist on FreeBSD, for
example).

The man page for getopt() clearly shows that, BTW:

   #define _GNU_SOURCE
   #include <getopt.h>

Would you mind fixing this problem?

Thanks,
Gerald
-- 
Gerald "Jerry"   pfeifer at dbai.tuwien.ac.at   http://www.pfeifer.com/gerald/



More information about the wine-devel mailing list