aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2004-03-04 11:35:30 +0000
committerBruce Evans <bde@FreeBSD.org>2004-03-04 11:35:30 +0000
commit623089f4ee9145de2c5dd0ca8c0cff521128c77f (patch)
treeb6a82db5a8652e90d3cb9833eac8ef3cfbe809f9 /sys
parent47e600b575adaf9cee2c00f865eb1af458af9676 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/filedesc.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/sys/filedesc.h b/sys/sys/filedesc.h
index 4ee039994941..5f1d1a5853b9 100644
--- a/sys/sys/filedesc.h
+++ b/sys/sys/filedesc.h
@@ -40,7 +40,8 @@
#include <sys/queue.h>
#include <sys/_lock.h>
#include <sys/_mutex.h>
-#include <sys/limits.h> /* XXX for CHAR_BIT */
+
+#include <machine/_limits.h>
/*
* This structure is used for the management of descriptors. It may be
@@ -56,7 +57,7 @@
#define NDFILE 20
#define NDSLOTTYPE u_long
#define NDSLOTSIZE sizeof(NDSLOTTYPE)
-#define NDENTRIES (NDSLOTSIZE * CHAR_BIT)
+#define NDENTRIES (NDSLOTSIZE * __CHAR_BIT)
#define NDSLOT(x) ((x) / NDENTRIES)
#define NDBIT(x) ((NDSLOTTYPE)1 << ((x) % NDENTRIES))
#define NDSLOTS(x) (((x) + NDENTRIES - 1) / NDENTRIES)