From 9af57a10a9b94c9c7d927bd1e3f884d2a40d1e6c Mon Sep 17 00:00:00 2001 From: Philippe Houdoin Date: Mon, 1 Dec 2003 13:15:03 +0000 Subject: [PATCH] Now private sys/socketvar.h header is no more included. Non-clean hack: include os-specific OS.h to get sem_id and thread_id types defined. Should clean up this whole file one day, thought. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5521 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/posix/net/if.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/headers/posix/net/if.h b/headers/posix/net/if.h index 5b3fc91d5c..d75527b4ef 100644 --- a/headers/posix/net/if.h +++ b/headers/posix/net/if.h @@ -5,8 +5,16 @@ #ifndef _NET_IF_H #define _NET_IF_H -#include -#include +/* FIXME: this file is NOT POSIX compliant, and rely on way too much OS-dependent + definition. + Moving private parts to private headers should help clean up this file + + POSIX net/if.h spec: + http://www.opengroup.org/onlinepubs/007904975/basedefs/net/if.h.html +*/ + +#include /* FIXME */ +#include /* FIXME */ #include #include #include @@ -15,6 +23,9 @@ extern "C" { #endif +/* Forward reference... */ +struct socket; + enum { IF_GETADDR = B_DEVICE_OP_CODES_END, IF_INIT,