summaryrefslogtreecommitdiffstats
path: root/sys/sys
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2015-10-10 05:50:42 +0000
committerkib <kib@FreeBSD.org>2015-10-10 05:50:42 +0000
commitc51894a182c11e94331debf51f3eebac815d32b0 (patch)
tree8e58a4b3434653e5392d000fc2847b64b707b780 /sys/sys
parent570b502e0841050e2e6ede74adb8bf33dac895d6 (diff)
downloadFreeBSD-src-c51894a182c11e94331debf51f3eebac815d32b0.zip
FreeBSD-src-c51894a182c11e94331debf51f3eebac815d32b0.tar.gz
MFC r288258:
Make the __bitcount*() functions unconditionally available.
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/types.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/sys/types.h b/sys/sys/types.h
index b6c4c89..24ba55e 100644
--- a/sys/sys/types.h
+++ b/sys/sys/types.h
@@ -285,9 +285,6 @@ typedef _Bool bool;
* The following are all things that really shouldn't exist in this header,
* since its purpose is to provide typedefs, not miscellaneous doodads.
*/
-#if __BSD_VISIBLE
-
-#include <sys/select.h>
#ifdef __POPCNT__
#define __bitcount64(x) __builtin_popcountll((__uint64_t)(x))
@@ -351,6 +348,10 @@ __bitcount64(__uint64_t _x)
#define __bitcount(x) __bitcount32((unsigned int)(x))
#endif
+#if __BSD_VISIBLE
+
+#include <sys/select.h>
+
/*
* minor() gives a cookie instead of an index since we don't want to
* change the meanings of bits 0-15 or waste time and space shifting
OpenPOWER on IntegriCloud