OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
os.h
Go to the documentation of this file.
1 /* System dependent (re)definitions */
2 #ifndef _agent_os_h_
3 #define _agent_os_h_
4 
5 #if defined(__linux__)
6 # include <sys/types.h>
7 # include <net/ethernet.h>
8 # if !defined(_FEATURES_H)
9 # define UNDEF__FEATURES_H
10 # define _FEATURES_H
11 # endif
12 # if !defined(__USEMISC)
13 # define UNDEF___USEMISC
14 # define __USEMISC 1
15 # endif
16 # if !defined(__FAVOR_BSD)
17 # define UNDEF___FAVOR_BSD
18 # define __FAVOR_BSD
19 # endif
20 #endif
21 
22 # include <netinet/tcp.h>
23 # include <netinet/udp.h>
24 
25 #if defined(__linux__)
26 # if defined(UNDEF__FEATURES_H)
27 # undef UNDEF__FATURES_H
28 # undef _FEATURES_H
29 # endif
30 # if defined(UNDEF___USEMISC)
31 # undef UNDEF___USEMISC
32 # undef __USEMISC
33 # endif
34 # if defined(UNDEF___FAVOR_BSD)
35 # undef UNDEF___FAVOR_BSD
36 # undef __FAVOR_BSD
37 # endif
38 #endif
39 
40 #endif /* ndef _agent_os_h_ */
41