Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 May 2007 07:23:11 -0700
From:      Jeremy Chadwick <koitsu@FreeBSD.org>
To:        Manolo Valdes <nolis71cu@gmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: issue with net/if_ppp.h
Message-ID:  <20070515142311.GA13314@icarus.home.lan>
In-Reply-To: <200705150955.40383.nolis71cu@gmail.com>
References:  <200705150955.40383.nolis71cu@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 |




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070515142311.GA13314>