summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2004-01-14 08:36:36 +0000
committerdes <des@FreeBSD.org>2004-01-14 08:36:36 +0000
commit5af668018e795d9c17119260794d60fed627ba1e (patch)
tree0723a0bfadf085294a673b518087c37cfba56cda
parent9766be385ffdb0c1bf9aec8d6161ec8734c3e18f (diff)
downloadFreeBSD-src-5af668018e795d9c17119260794d60fed627ba1e.zip
FreeBSD-src-5af668018e795d9c17119260794d60fed627ba1e.tar.gz
#include <machine/cpufunc.h>, which may define inline versions of some
of the functions in libkern. Without this, parts of the kernel would reference a non-existent (undeclared and undefined) ffs() function; the only reason this didn't break the kernel build is that gcc happens to have a built-in ffs() and incorrectly fails to warn about the lack of prototypes for built-in functions.
-rw-r--r--sys/sys/libkern.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/libkern.h b/sys/sys/libkern.h
index e4a7880..cab6c97 100644
--- a/sys/sys/libkern.h
+++ b/sys/sys/libkern.h
@@ -43,6 +43,8 @@
#include <sys/systm.h>
#endif
+#include <machine/cpufunc.h>
+
/* BCD conversions. */
extern u_char const bcd2bin_data[];
extern u_char const bin2bcd_data[];
OpenPOWER on IntegriCloud