Re: getopt.h broken on FreeBSD

2009-10-19 Thread Sergey Poznyakoff
Hi Jim, > How about just using flex's %top directive? Hm, I overlooked that. Thanks for the suggestion! Regards, Sergey

Re: getopt.h broken on FreeBSD

2009-10-19 Thread Jim Meyering
Sergey Poznyakoff wrote: > We've got one more problem with getopt.h. It manifests > itself when compiling lex-generated parsers on FreeBSD. > What happens is the following: the system getopt.h defines > getopt_long, struct option and the accompanying stuff, > but does not define __need_getopt. Cons

getopt.h broken on FreeBSD

2009-10-19 Thread Sergey Poznyakoff
Hi, We've got one more problem with getopt.h. It manifests itself when compiling lex-generated parsers on FreeBSD. What happens is the following: the system getopt.h defines getopt_long, struct option and the accompanying stuff, but does not define __need_getopt. Consequently, gnulib's getopt.h in