X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/1c79356b52d46aa6b508fb032f5ae709b1f2897b..b4c24cb9d3df001f2892dc4ed451bc769ff28a9f:/bsd/machine/ansi.h diff --git a/bsd/machine/ansi.h b/bsd/machine/ansi.h index 57cef4960..8f34cdd79 100644 --- a/bsd/machine/ansi.h +++ b/bsd/machine/ansi.h @@ -29,7 +29,6 @@ #ifndef _MACHINE_ANSI_H_ #define _MACHINE_ANSI_H_ - #if defined (__ppc__) #include "ppc/ansi.h" #elif defined (__i386__) @@ -38,5 +37,10 @@ #error architecture not supported #endif +#ifdef KERNEL +#ifndef offsetof +#define offsetof(type, member) ((size_t)(&((type *)0)->member)) +#endif /* offsetof */ +#endif /* KERNEL */ #endif /* _MACHINE_ANSI_H_ */