diff options
Diffstat (limited to 'usr/src/uts/common/sys/sysmacros.h')
-rw-r--r-- | usr/src/uts/common/sys/sysmacros.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/src/uts/common/sys/sysmacros.h b/usr/src/uts/common/sys/sysmacros.h index 5dc6eee0ec..1540840aff 100644 --- a/usr/src/uts/common/sys/sysmacros.h +++ b/usr/src/uts/common/sys/sysmacros.h @@ -66,6 +66,10 @@ extern "C" { #define SIGNOF(a) ((a) < 0 ? -1 : (a) > 0) #endif +#ifndef __DECONST +#define __DECONST(type, var) ((type)(uintptr_t)(const void *)(var)) +#endif + #ifdef _KERNEL /* |