summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/sys/sid.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/sys/sid.h')
-rw-r--r--usr/src/uts/common/sys/sid.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr/src/uts/common/sys/sid.h b/usr/src/uts/common/sys/sid.h
index d38fc64eed..eef4bb2eb1 100644
--- a/usr/src/uts/common/sys/sid.h
+++ b/usr/src/uts/common/sys/sid.h
@@ -22,6 +22,8 @@
/*
* Copyright 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ *
+ * Copyright 2013 Nexenta Systems, Inc. All rights reserved.
*/
#ifndef _SYS_SID_H
@@ -29,7 +31,7 @@
#include <sys/types.h>
#include <sys/avl.h>
-#ifdef _KERNEL
+#if defined(_KERNEL) || defined(_FAKE_KERNEL)
#include <sys/zone.h>
#endif
@@ -53,7 +55,7 @@ extern "C" {
#define SIDSYS_SID2ID 0
#define SIDSYS_ID2SID 1
-#ifdef _KERNEL
+#if defined(_KERNEL) || defined(_FAKE_KERNEL)
#define KSIDLIST_MEM(n) (sizeof (ksidlist_t) + ((n) - 1) * sizeof (ksid_t))
/* Domains are stored in AVL trees so we can share them among SIDs */
@@ -122,7 +124,7 @@ ksiddomain_t *ksid_lookupdomain(const char *);
ksidlist_t *kcrsid_gidstosids(zone_t *, int, gid_t *);
-#else
+#else /* _KERNEL */
int allocids(int, int, uid_t *, int, gid_t *);
int __idmap_reg(int);