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:
+13
-2
@@ -5,8 +5,16 @@
|
|||||||
#ifndef _NET_IF_H
|
#ifndef _NET_IF_H
|
||||||
#define _NET_IF_H
|
#define _NET_IF_H
|
||||||
|
|
||||||
#include <Drivers.h>
|
/* FIXME: this file is NOT POSIX compliant, and rely on way too much OS-dependent
|
||||||
#include <sys/socketvar.h>
|
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 <net/if_types.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <net/route.h>
|
#include <net/route.h>
|
||||||
@@ -15,6 +23,9 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Forward reference... */
|
||||||
|
struct socket;
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
IF_GETADDR = B_DEVICE_OP_CODES_END,
|
IF_GETADDR = B_DEVICE_OP_CODES_END,
|
||||||
IF_INIT,
|
IF_INIT,
|
||||||
|
|||||||
Reference in New Issue
Block a user