summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libc
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-11-18 22:32:55 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-11-18 22:32:55 +0000
commitc7ca28cf379b4e46c277a59e23154cc36a9c5770 (patch)
treeb49ed9bc8ac9e4cb95d99867e5160c3389d02473 /c/src/lib/libc
parentRemoved warnings. (diff)
downloadrtems-c7ca28cf379b4e46c277a59e23154cc36a9c5770.tar.bz2
Removed warning under linux port.
Diffstat (limited to 'c/src/lib/libc')
-rw-r--r--c/src/lib/libc/malloc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/c/src/lib/libc/malloc.c b/c/src/lib/libc/malloc.c
index e8387d4364..35acf86a2f 100644
--- a/c/src/lib/libc/malloc.c
+++ b/c/src/lib/libc/malloc.c
@@ -26,6 +26,11 @@
#include <assert.h>
#include <errno.h>
#include <string.h>
+
+/* for sbrk prototype in linux */
+#if defined(linux)
+#define __USE_MISC
+#endif
#include <unistd.h> /* sbrk(2) */
rtems_id RTEMS_Malloc_Heap;