summaryrefslogtreecommitdiff
path: root/sys/dev/pci/ncr.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-10-31 01:05:14 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-10-31 01:05:14 +0000
commitd3679db18e84caee4da6f15fe00e4c39494dadf2 (patch)
treed1bafffa65a299d12b6621f4914f134fc8d77628 /sys/dev/pci/ncr.c
parentacb24b57a076484b61159a23b384d07d9e79fd84 (diff)
-Wall fixes needed by alpha
Diffstat (limited to 'sys/dev/pci/ncr.c')
-rw-r--r--sys/dev/pci/ncr.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/dev/pci/ncr.c b/sys/dev/pci/ncr.c
index 5d76c19fc0b..530c79c43b8 100644
--- a/sys/dev/pci/ncr.c
+++ b/sys/dev/pci/ncr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ncr.c,v 1.16 1996/10/18 15:43:56 niklas Exp $ */
+/* $OpenBSD: ncr.c,v 1.17 1996/10/31 01:05:12 niklas Exp $ */
/* $NetBSD: ncr.c,v 1.35.4.1 1996/06/03 20:32:17 cgd Exp $ */
/**************************************************************************
@@ -166,9 +166,15 @@
#if defined(__NetBSD__) || defined(__OpenBSD__)
#ifdef _KERNEL
#define KERNEL
+
+/*
+ * Normally found in the userland header stddef.h, which isn't available.
+ */
+#define offsetof(type, member) ((size_t)(&((type *)0)->member))
#endif
-#endif
+#else
#include <stddef.h>
+#endif
#include <sys/types.h>
#include <sys/param.h>