aboutsummaryrefslogtreecommitdiff
path: root/sys/alpha
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2000-10-27 11:45:49 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2000-10-27 11:45:49 +0000
commit46aa3347cb72a78253d66cee79e17413af61804c (patch)
tree5a6a7cebc3f9800c1819d1438e9a53e273da5747 /sys/alpha
parent303fd73aa775b9289ced7cc21fa3ad62d283450e (diff)
Notes
Diffstat (limited to 'sys/alpha')
-rw-r--r--sys/alpha/alpha/machdep.c2
-rw-r--r--sys/alpha/include/ansi.h5
2 files changed, 5 insertions, 2 deletions
diff --git a/sys/alpha/alpha/machdep.c b/sys/alpha/alpha/machdep.c
index 47d9951e3623..0cf74e537a7f 100644
--- a/sys/alpha/alpha/machdep.c
+++ b/sys/alpha/alpha/machdep.c
@@ -231,8 +231,6 @@ static vm_offset_t buffer_sva, buffer_eva;
vm_offset_t clean_sva, clean_eva;
static vm_offset_t pager_sva, pager_eva;
-#define offsetof(type, member) ((size_t)(&((type *)0)->member))
-
/*
* Hooked into the shutdown chain; if the system is to be halted,
* unconditionally drop back to the SRM console.
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.
*/