added C++ header guards
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1655 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -6,16 +6,16 @@
|
||||
#define _NET_IF_H
|
||||
|
||||
#include <OS.h>
|
||||
//#include <Drivers.h>
|
||||
#include <Drivers.h>
|
||||
#include <sys/socketvar.h>
|
||||
#include <net/if_types.h>
|
||||
#include <netinet/in.h>
|
||||
#include <net/route.h>
|
||||
|
||||
/* XXX - hack to get this file building
|
||||
* taken from be/drivers/Drivers.h
|
||||
*/
|
||||
#define B_DEVICE_OP_CODES_END 9999
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
enum {
|
||||
IF_GETADDR = B_DEVICE_OP_CODES_END,
|
||||
IF_INIT,
|
||||
@@ -273,5 +273,9 @@ struct ifa_msghdr {
|
||||
void if_init(void);
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _NET_IF_H */
|
||||
|
||||
|
||||
@@ -5,7 +5,11 @@
|
||||
#ifndef OBOS_IF_DL_H
|
||||
#define OBOS_IF_DL_H
|
||||
|
||||
#include "net/if.h"
|
||||
#include <net/if.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* link level sockaddr structure */
|
||||
struct sockaddr_dl {
|
||||
@@ -26,5 +30,9 @@ struct sockaddr_dl {
|
||||
void link_addr (const char *, struct sockaddr_dl *);
|
||||
char *link_ntoa (const struct sockaddr_dl *);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* OBOS_IF_DL_H */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user