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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to