summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/sys/random.h
diff options
context:
space:
mode:
authorGordon Ross <gwr@nexenta.com>2013-06-17 10:34:00 -0400
committerGordon Ross <gwr@nexenta.com>2015-06-04 16:46:25 -0400
commitb819cea2f73f98c5662230cc9affc8cc84f77fcf (patch)
treea3677952ded5706400717b9b79b0aeaa3d93a739 /usr/src/uts/common/sys/random.h
parent83d2dfe69259e79314662cf95e6d1f9103dcffe2 (diff)
downloadillumos-joyent-b819cea2f73f98c5662230cc9affc8cc84f77fcf.tar.gz
5917 User-mode SMB server
Authored by: Thomas Keiser <thomas.keiser@nexenta.com> Authored by: Albert Lee <trisk@nexenta.com> Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com> Reviewed by: Richard Lowe <richlowe@richlowe.net> Reviewed by: Albert Lee <trisk@omniti.com> Approved by: Dan McDonald <danmcd@omniti.com>
Diffstat (limited to 'usr/src/uts/common/sys/random.h')
-rw-r--r--usr/src/uts/common/sys/random.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/uts/common/sys/random.h b/usr/src/uts/common/sys/random.h
index b835d2f5ac..6a0d421a15 100644
--- a/usr/src/uts/common/sys/random.h
+++ b/usr/src/uts/common/sys/random.h
@@ -23,8 +23,8 @@
* Use is subject to license terms.
*/
/*
- * Copyright 2010 Nexenta Systems, Inc. All rights reserved.
* Copyright (c) 2015, Joyent, Inc.
+ * Copyright 2013 Nexenta Systems, Inc. All rights reserved.
*/
#ifndef _SYS_RANDOM_H
@@ -54,7 +54,7 @@ typedef struct swrand_stats {
/* the pool */
} swrand_stats_t;
-#ifdef _KERNEL
+#if defined(_KERNEL) || defined(_FAKE_KERNEL)
#define BUMP_CPU_RND_STATS(rm, x, v) (((rm)->rm_mag.rm_stats).x += (v))
#define BUMP_RND_STATS(x, v) atomic_add_64(&(rnd_stats).x, (v))