diff options
Diffstat (limited to 'sys/ia64/include/ansi.h')
-rw-r--r-- | sys/ia64/include/ansi.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/ia64/include/ansi.h b/sys/ia64/include/ansi.h index c5ef23d..c4e1156 100644 --- a/sys/ia64/include/ansi.h +++ b/sys/ia64/include/ansi.h @@ -101,6 +101,11 @@ #define _BSD_CLOCKS_PER_SEC_ 100 /* + * We define this here since both <stddef.h> and <sys/types.h> needs it. + */ +#define __offsetof(type, field) ((size_t)(&((type *)0)->field)) + +/* * Internal names for basic integral types. Omit the typedef if * not possible for a machine/compiler combination. */ |