Print this page
2976 remove useless offsetof() macros

@@ -50,12 +50,12 @@
 #include <sys/utsname.h>
 #include <sys/systeminfo.h>
 #include <sys/ddi.h>
 #include <sys/time.h>
 #include <sys/promif.h>
+#include <sys/sysmacros.h>
 
-#define offsetof(s, m)  (size_t)(&(((s *)0)->m))
 #define RMCRESBUFLEN    1024
 #define DATE_TIME_MSG_SIZE      78
 #define RMCLOMV_WATCHDOG_MODE   "rmclomv-watchdog-mode"
 #define DELAY_TIME      5000000  /* 5 seconds, in microseconds */
 #define CPU_SIGNATURE_DELAY_TIME        5000000  /* 5 secs, in microsecs */