Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 May 2002 18:14:46 +0200
From:      aaron <aaron@lo-res.org>
To:        freebsd-hackers@freebsd.org
Subject:   /usr/include/netinet/in.h
Message-ID:  <200205071814.46995.aaron@lo-res.org>

next in thread | raw e-mail | index | archive | help

Hi!

I am just trying to write a simple IPv6 socket app. 
after #including <netinet/in.h> I noticed that I have to include <sys/types.h> 
BEFORE <netinet/in.h> which struck me as rather strange... 

Should not .h files include the depending .h files themselves so that all 
dependencies of type / struct / #define definitions are met automatically?

If not this is not what we want then we have the following problem:

#include <sys/types.h>
#include <netinet/in.h> 

   works

but

#include <netinet/in.h>
#include <sys/types.h>

does not work.

... hm... wondering if this what we want....

aaron.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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