aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2006-04-08 19:45:58 -0700
committerH. Peter Anvin <hpa@zytor.com>2006-04-08 19:45:58 -0700
commit38ae493c625a978c415acc1a955db7fb2e1422c7 (patch)
tree1dea7a6842a5b4c4cf45e84c5e1b705ff40553b8
parentc877b00d4dd9d7d1252b3f3fff2bdb025c4109f1 (diff)
downloadklibc-38ae493c625a978c415acc1a955db7fb2e1422c7.tar.gz
[klibc] Add missing #includesklibc-1.3.5
<klibc/sysconfig.h> needs <asm/unistd.h> since many of the defaults are keyed on the existence of specific system calls. malloc.c needs <unistd.h> in case _KLIBC_NO_MMU is defined. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--include/klibc/sysconfig.h1
-rw-r--r--klibc/malloc.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/klibc/sysconfig.h b/include/klibc/sysconfig.h
index 1a9cdea58bb86..4a8f03d3f3823 100644
--- a/include/klibc/sysconfig.h
+++ b/include/klibc/sysconfig.h
@@ -9,6 +9,7 @@
#define _KLIBC_SYSCONFIG_H
#include <klibc/archconfig.h>
+#include <asm/unistd.h>
/*
* These are the variables that can be defined in <klibc/archconfig.h>.
diff --git a/klibc/malloc.c b/klibc/malloc.c
index e02cec18e98ff..0840321a4b995 100644
--- a/klibc/malloc.c
+++ b/klibc/malloc.c
@@ -5,6 +5,7 @@
*/
#include <stdlib.h>
+#include <unistd.h>
#include <sys/mman.h>
#include "malloc.h"