Re: getopt.h getopt() decl broken for many targets

2005-03-25 Thread Ian Lance Taylor
"Aaron W. LaFramboise" <[EMAIL PROTECTED]> writes: > This is due to this code: > > #if !HAVE_DECL_GETOPT > #if defined (__GNU_LIBRARY__) || defined (HAVE_DECL_GETOPT) > /* Many other libraries have conflicting prototypes for getopt, with >differences in the consts, in unistd.h. To avoid comp

getopt.h getopt() decl broken for many targets

2005-03-24 Thread Aaron W. LaFramboise
Targets, such as Windows, that don't have getopt() will probably have get the following error when compiling binutils. gcc -DHAVE_CONFIG_H -I. -I/aaronwl/cs/compilers/binutils/src/cvs/src/binutils -I. -D_GNU_SOURCE -I. -I/aaronwl/cs/compilers/binutils/src/cvs/src/binutils -I../bfd -I/aaronwl/cs/co