summaryrefslogtreecommitdiffstats
path: root/sys/libkern
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2001-07-08 04:56:07 +0000
committerjulian <julian@FreeBSD.org>2001-07-08 04:56:07 +0000
commit869029d5d7ecbdcabcad467c24dc102b3f110fde (patch)
tree3051a844ae5f32a737fef0e28618341231a0c500 /sys/libkern
parenta4bd2ebd1e87443fcc729b7408b73c2fe20dc143 (diff)
downloadFreeBSD-src-869029d5d7ecbdcabcad467c24dc102b3f110fde.zip
FreeBSD-src-869029d5d7ecbdcabcad467c24dc102b3f110fde.tar.gz
A set of changes to reduce the number of include files the kernel
takes from /usr/include. I cannot check them on alpha.. (will try beast) Briefly looked at by: Warner Losh <imp@harmony.village.org>
Diffstat (limited to 'sys/libkern')
-rw-r--r--sys/libkern/bsearch.c5
-rw-r--r--sys/libkern/quad.h3
2 files changed, 5 insertions, 3 deletions
diff --git a/sys/libkern/bsearch.c b/sys/libkern/bsearch.c
index 5b34500..6aceaa7 100644
--- a/sys/libkern/bsearch.c
+++ b/sys/libkern/bsearch.c
@@ -37,8 +37,9 @@
static char sccsid[] = "@(#)bsearch.c 8.1 (Berkeley) 6/4/93";
#endif /* LIBC_SCCS and not lint */
-#include <stddef.h>
-#include <stdlib.h>
+#include <sys/param.h>
+#include <machine/ansi.h>
+#include <sys/libkern.h>
/*
* Perform a binary search.
diff --git a/sys/libkern/quad.h b/sys/libkern/quad.h
index 730f08f..82cf052 100644
--- a/sys/libkern/quad.h
+++ b/sys/libkern/quad.h
@@ -56,7 +56,8 @@
#include <sys/cdefs.h>
#include <sys/types.h>
-#include <limits.h>
+#include <sys/syslimits.h>
+#include <machine/limits.h>
/*
* Depending on the desired operation, we view a `long long' (aka quad_t) in
OpenPOWER on IntegriCloud