aboutsummaryrefslogtreecommitdiffstats
path: root/cache-utils.c
diff options
context:
space:
mode:
authorJuergen Lock <nox@jelal.kn-bremen.de>2010-03-12 22:50:15 +0100
committermalc <av1474@comtv.ru>2010-03-13 01:14:01 +0300
commit4836a2b09a94969d3d69c5c9f9ba8f58767575ca (patch)
tree021255a0e7f10793ea9ac97186ba13a14b8dbd27 /cache-utils.c
parent35f6b5997a334436e5bd4ca59aa92f2ccb3d4cb0 (diff)
FreeBSD ppc_init_cacheline_sizes(): add missing #includes
This fixes commit e4ee916d3f9a93df06bd498c92767c1558d59a0b. (The bug was mine actually...) Submitted by: Andreas Tobler <andreast@fgznet.ch> Signed-off-by: Juergen Lock <nox@jelal.kn-bremen.de> Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'cache-utils.c')
-rw-r--r--cache-utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cache-utils.c b/cache-utils.c
index 8bbd68054..b1f20978c 100644
--- a/cache-utils.c
+++ b/cache-utils.c
@@ -58,7 +58,10 @@ static void ppc_init_cacheline_sizes(void)
#endif
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+#include <errno.h>
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include <sys/types.h>
#include <sys/sysctl.h>