issue with net/if_ppp.h

Ed Schouten ed at fxq.nl
Tue May 15 14:19:38 UTC 2007


* Manolo Valdes <nolis71cu at gmail.com> wrote:
> In file included from /usr/include/net/if_ppp.h:28,
>                  from test.c:1:
> /usr/include/net/ppp_defs.h:86: error: syntax error before "ext_accm"
> /usr/include/net/ppp_defs.h:146: error: syntax error before "time_t"
> In file included from /usr/include/net/if_ppp.h:29,
>                  from test.c:1:
> /usr/include/net/if.h:265: error: field `ifru_addr' has incomplete type
> /usr/include/net/if.h:266: error: field `ifru_dstaddr' has incomplete type
> /usr/include/net/if.h:267: error: field `ifru_broadaddr' has incomplete type
> /usr/include/net/if.h:299: error: field `ifra_addr' has incomplete type
> /usr/include/net/if.h:300: error: field `ifra_broadaddr' has incomplete type
> /usr/include/net/if.h:301: error: field `ifra_mask' has incomplete type
> /usr/include/net/if.h:368: error: field `addr' has incomplete type
> /usr/include/net/if.h:369: error: field `dstaddr' has incomplete type

Use the following lines:

	#include <sys/types.h>
	#include <sys/socket.h>
	#include <net/if_ppp.h>

Yours,
-- 
 Ed Schouten <ed at fxq.nl>
 WWW: http://g-rave.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20070515/fd53258f/attachment.pgp


More information about the freebsd-hackers mailing list