1 /****************************************************************************
2 ****************************************************************************
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
10 ****************************************************************************
11 ****************************************************************************/
12 #ifndef _LINUX_STDDEF_H
13 #define _LINUX_STDDEF_H
15 #include <linux/compiler.h>
21 #define NULL ((void *)0)
25 #ifdef __compiler_offsetof
26 #define offsetof(TYPE,MEMBER) __compiler_offsetof(TYPE,MEMBER)
28 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)