diff options
Diffstat (limited to 'sys/i386/include/ansi.h')
-rw-r--r-- | sys/i386/include/ansi.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/i386/include/ansi.h b/sys/i386/include/ansi.h index 65ab84f..f01fe5e 100644 --- a/sys/i386/include/ansi.h +++ b/sys/i386/include/ansi.h @@ -93,6 +93,11 @@ #define _BSD_CLOCKS_PER_SEC_ 128 /* + * We define this here since both <stddef.h> and <sys/types.h> needs it. + */ +#define __offsetof(type, field) ((size_t)(&((type *)0)->field)) + +/* * Typedefs for especially magic types. #define's wouldn't work in the * __GNUC__ case, since __attribute__(()) only works in certain contexts. * This is not in <machine/types.h>, since that has too much namespace |