datapath: Add support for lwtunnel
[cascardo/ovs.git] / datapath / linux / compat / include / linux / stddef.h
1 #ifndef __LINUX_STDDEF_WRAPPER_H
2 #define __LINUX_STDDEF_WRAPPER_H 1
3
4 #include_next <linux/stddef.h>
5
6 #ifdef __KERNEL__
7
8 #ifndef HAVE_BOOL_TYPE
9 enum {
10         false   = 0,
11         true    = 1
12 };
13 #endif /* !HAVE_BOOL_TYPE */
14
15 #ifndef offsetofend
16 #define offsetofend(TYPE, MEMBER) \
17         (offsetof(TYPE, MEMBER) + sizeof(((TYPE *)0)->MEMBER))
18 #endif
19
20 #endif /* __KERNEL__ */
21
22 #endif