issue with net/if_ppp.h

Jeremy Chadwick koitsu at FreeBSD.org
Tue May 15 14:33:14 UTC 2007


On Tue, May 15, 2007 at 09:55:40AM -0400, Manolo Valdes wrote:
> Hi guys
> 
> doing a test just like the way cmake do it to find includes on the system
> 
> ######test.c######
> 
> #include <net/if_ppp.h>
> int main(){return 0;}
> 
> ################

What exactly are you trying to do here?  This is not how you write C
software.  You're missing quite a lot of other (standard) #includes,
which is why you're seeing the errors you are.

> this test works on on Linux systems.

That's nice.

> does anybody knows if this is a bug or problem with the net/if_ppp.h header?

It's a bug in your .c file, yes.  :-)

-- 
| Jeremy Chadwick                                    jdc at parodius.com |
| Parodius Networking                           http://www.parodius.com/ |
| UNIX Systems Administrator                      Mountain View, CA, USA |
| Making life hard for others since 1977.                  PGP: 4BD6C0CB |



More information about the freebsd-hackers mailing list