On 1/7/07, Georg Schwarz <georg.schwarz@freenet.de> wrote:
> > Please check *first* whether it is actually using getopt_long or
> > getopt_long_only. If it is only using getopt, it should include
> > unistd.h
>
> For a test I simply exhanged getopt.h with unistd.h, and I now end up
> like this:
>
> main.c: In function 'main':
> main.c:166: error: array type has incomplete element type
>
> Linie 166 in main.c has
>
> struct option long_options[]={
Then include devel/getopt/buildlink3.mk; it has an appropriate builtin.mk.
--
-- Todd Vierling <tv@duh.org> <tv@pobox.com> <todd@vierling.name>