summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/sys/sysmacros.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/sys/sysmacros.h')
-rw-r--r--usr/src/uts/common/sys/sysmacros.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/src/uts/common/sys/sysmacros.h b/usr/src/uts/common/sys/sysmacros.h
index 9695982dcc..89a672db2f 100644
--- a/usr/src/uts/common/sys/sysmacros.h
+++ b/usr/src/uts/common/sys/sysmacros.h
@@ -57,6 +57,9 @@ extern "C" {
#ifndef ABS
#define ABS(a) ((a) < 0 ? -(a) : (a))
#endif
+#ifndef SIGNOF
+#define SIGNOF(a) ((a) < 0 ? -1 : (a) > 0)
+#endif
#ifdef _KERNEL