aboutsummaryrefslogtreecommitdiff
path: root/kern/list.h
diff options
context:
space:
mode:
Diffstat (limited to 'kern/list.h')
-rw-r--r--kern/list.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/kern/list.h b/kern/list.h
index ad782a8a..be927625 100644
--- a/kern/list.h
+++ b/kern/list.h
@@ -31,9 +31,7 @@
#include <stddef.h>
#include <sys/types.h>
-
-#define structof(ptr, type, member) \
- ((type *)((char *)ptr - offsetof(type, member)))
+#include <kern/macros.h>
/*
* Structure used as both head and node.