aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitar Dimitrov <dimitar@dinux.eu>2022-05-04 19:31:43 +0300
committerJeff Johnston <jjohnstn@redhat.com>2022-05-04 12:49:55 -0400
commit90a4ab5eb16a7b3c5451f07d6a4972cb4cbd3dd3 (patch)
treec76bf5a509084e176fe800bc31f10fafcde19463
parentad51d0006a0aaf17aa61ec34221add09bfe01f0c (diff)
downloadnewlib-90a4ab5eb16a7b3c5451f07d6a4972cb4cbd3dd3.zip
newlib-90a4ab5eb16a7b3c5451f07d6a4972cb4cbd3dd3.tar.gz
newlib-90a4ab5eb16a7b3c5451f07d6a4972cb4cbd3dd3.tar.bz2
Fix nano-malloc build
The nano malloc build broke with: Commit 357d7fcc6 In <stdio.h> provide only necessary types The above commit exposed a latent missing-header bug: newlib/libc/stdlib/nano-mallocr.c:220:33: error: ‘uintptr_t’ undeclared (first use in this function) Fix by including <stdint.h>. Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
-rw-r--r--newlib/libc/stdlib/nano-mallocr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/newlib/libc/stdlib/nano-mallocr.c b/newlib/libc/stdlib/nano-mallocr.c
index 7ba1c0a..99ad60d 100644
--- a/newlib/libc/stdlib/nano-mallocr.c
+++ b/newlib/libc/stdlib/nano-mallocr.c
@@ -36,6 +36,7 @@
#include <string.h>
#include <errno.h>
#include <malloc.h>
+#include <stdint.h>
#if DEBUG
#include <assert.h>