diff options
Diffstat (limited to 'sys/alpha/include/ansi.h')
-rw-r--r-- | sys/alpha/include/ansi.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/alpha/include/ansi.h b/sys/alpha/include/ansi.h index f9b1f42..9eaf663 100644 --- a/sys/alpha/include/ansi.h +++ b/sys/alpha/include/ansi.h @@ -106,6 +106,11 @@ typedef struct { #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. */ |