Print this page
2976 remove useless offsetof() macros

@@ -43,12 +43,11 @@
 #include <libintl.h>
 #include <locale.h>
 #include <sys/smbios.h>
 #include <libdevinfo.h>
 #include <stdlib.h>
-
-#define offsetof(s, m)  ((size_t)(&(((s*)0)->m)))
+#include <stddef.h>
 
 /*
  * Fault records are added to catalog by calling add_fault_record_to_catalog()
  * records are stored in order of importance to the system.
  * If -g flag is set or not_suppressed is not set and the class fru, fault,