summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/sys/select.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/sys/select.h')
-rw-r--r--usr/src/uts/common/sys/select.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/usr/src/uts/common/sys/select.h b/usr/src/uts/common/sys/select.h
index 418cb56838..aa6ef3185e 100644
--- a/usr/src/uts/common/sys/select.h
+++ b/usr/src/uts/common/sys/select.h
@@ -22,6 +22,8 @@
/*
* Copyright 2014 Garrett D'Amore <garrett@damore.org>
*
+ * Copyright 2013 Nexenta Systems, Inc. All rights reserved.
+ *
* Copyright 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -44,12 +46,12 @@
#include <sys/feature_tests.h>
-#ifndef _KERNEL
+#if !defined(_KERNEL) && !defined(_FAKE_KERNEL)
#if !defined(__XOPEN_OR_POSIX) || defined(_XPG6) || defined(__EXTENSIONS__)
#include <sys/time_impl.h>
#endif
#include <sys/time.h>
-#endif /* _KERNEL */
+#endif /* !_KERNEL */
#ifdef __cplusplus
extern "C" {
@@ -147,13 +149,13 @@ typedef struct __fd_set {
#define FD_ISSET(__n, __p) (((__p)->fds_bits[(__n)/FD_NFDBITS] & \
(1ul << ((__n) % FD_NFDBITS))) != 0l)
-#ifdef _KERNEL
+#if defined(_KERNEL) || defined(_FAKE_KERNEL)
#define FD_ZERO(p) bzero((p), sizeof (*(p)))
#else
#define FD_ZERO(__p) (void) memset((__p), 0, sizeof (*(__p)))
#endif /* _KERNEL */
-#ifndef _KERNEL
+#if !defined(_KERNEL) && !defined(_FAKE_KERNEL)
extern int select(int, fd_set *_RESTRICT_KYWD, fd_set *_RESTRICT_KYWD,
fd_set *_RESTRICT_KYWD, struct timeval *_RESTRICT_KYWD);