diff options
author | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 2001-04-06 04:42:10 +0000 |
---|---|---|
committer | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 2001-04-06 04:42:10 +0000 |
commit | ffceee0a9bdf5623166b2e619112624678bdd7d6 (patch) | |
tree | 6b4c1cde2b4bfeae53032bc8bd9ddd33aa7b1f10 /sys/arch/sparc/dev | |
parent | ccea5a5a7c92530c31d0d76d0c1b2fd4ccf7e938 (diff) |
Move offsetof define into sys/param.h
Diffstat (limited to 'sys/arch/sparc/dev')
-rw-r--r-- | sys/arch/sparc/dev/cgtwo.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/arch/sparc/dev/cgtwo.c b/sys/arch/sparc/dev/cgtwo.c index 70fbc0b76b6..17015c99929 100644 --- a/sys/arch/sparc/dev/cgtwo.c +++ b/sys/arch/sparc/dev/cgtwo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cgtwo.c,v 1.13 1999/09/10 23:32:02 art Exp $ */ +/* $OpenBSD: cgtwo.c,v 1.14 2001/04/06 04:42:05 csapuntz Exp $ */ /* $NetBSD: cgtwo.c,v 1.22 1997/05/24 20:16:12 pk Exp $ */ /* @@ -222,9 +222,6 @@ cgtwoattach(parent, self, args) sc->sc_fb.fb_pixels = mapiodev(&sc->sc_phys, CG2_PIXMAP_OFF, CG2_PIXMAP_SIZE); } -#ifndef offsetof -#define offsetof(type, member) ((size_t)(&((type *)0)->member)) -#endif sc->sc_reg = (volatile struct cg2statusreg *) mapiodev(ca->ca_ra.ra_reg, |