Subject: Re: best practise of adding dependency on getopt.h?
To: Packages Technical List NetBSD Discussion <tech-pkg@NetBSD.org>
From: Christian Biere <email@example.com>
Date: 01/01/2007 23:46:41
Georg Schwarz wrote:
> Am 01.01.2007 um 23:35 schrieb Christian Biere:
> >Does it need getopt.h or does it simply include the header file
> >without checking for its existence? Why is the file used at all?
> in its main.c it simply has
> #include <getopt.h>
Yes, I've just seen this. Does GCC silently provide getopt_long()?
Otherwise you need the additional library anyway.