diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2000-10-27 11:45:49 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2000-10-27 11:45:49 +0000 |
| commit | 46aa3347cb72a78253d66cee79e17413af61804c (patch) | |
| tree | 5a6a7cebc3f9800c1819d1438e9a53e273da5747 /sys/alpha/include | |
| parent | 303fd73aa775b9289ced7cc21fa3ad62d283450e (diff) | |
Notes
Diffstat (limited to 'sys/alpha/include')
| -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 f9b1f424114b..9eaf663e069c 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. */ |
