Print this page
2976 remove useless offsetof() macros
@@ -25,17 +25,16 @@
*/
#ifndef _MISC_H
#define _MISC_H
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/types.h>
#include <sys/time.h>
#include <thread.h>
#include <pthread.h>
#include <stdarg.h>
+#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
@@ -43,18 +42,10 @@
extern uint_t umem_output; /* output error messages to stderr */
extern caddr_t umem_min_stack; /* max stack address for audit log */
extern caddr_t umem_max_stack; /* min stack address for audit log */
/*
- * various utility functions
- * These are globally implemented.
- */
-
-#undef offsetof
-#define offsetof(s, m) ((size_t)(&(((s *)0)->m)))
-
-/*
* a safe printf -- do not use for error messages.
*/
void debug_printf(const char *format, ...);
/*