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
This commit is contained in:
Philippe Houdoin 2003-12-01 13:15:03 +00:00
parent 3c39dc6e6e
commit 9af57a10a9

View File

@ -5,8 +5,16 @@
#ifndef _NET_IF_H
#define _NET_IF_H
#include <Drivers.h>
#include <sys/socketvar.h>
/* 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 <Drivers.h> /* FIXME */
#include <OS.h> /* FIXME */
#include <net/if_types.h>
#include <netinet/in.h>
#include <net/route.h>
@ -15,6 +23,9 @@
extern "C" {
#endif
/* Forward reference... */
struct socket;
enum {
IF_GETADDR = B_DEVICE_OP_CODES_END,
IF_INIT,