[Asterisk-bsd] No getopt.h on FreeBSD 4.9 (was: (no subject))

Skip Ford skip.ford at verizon.net
Thu Feb 3 07:16:40 CST 2005


Kairat Junushev wrote:
>    I am trying to install driver for Digium TDM400P Telephony Card on
>    FreeBSD 4.9. Installing from ports - misc/zaptel.
> 
>    ztcfg.c: 34: getopt.h: No such file or directory
> 
>    *** Error code 1

FreeBSD didn't introduce getopt.h until 5.0.

>    What I must to do to solving the promlem

You need to include <unistd.h> instead.  In this case, it's already
included, so you should be able to just delete the include <getopt.h>


More information about the Asterisk-BSD mailing list