* [PATCH] Fix nano-malloc build
@ 2022-05-04 16:31 Dimitar Dimitrov
2022-05-04 16:50 ` Jeff Johnston
0 siblings, 1 reply; 2+ messages in thread
From: Dimitar Dimitrov @ 2022-05-04 16:31 UTC (permalink / raw)
To: newlib
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>
---
newlib/libc/stdlib/nano-mallocr.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/newlib/libc/stdlib/nano-mallocr.c b/newlib/libc/stdlib/nano-mallocr.c
index 7ba1c0abc..99ad60dd0 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>
--
2.35.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix nano-malloc build
2022-05-04 16:31 [PATCH] Fix nano-malloc build Dimitar Dimitrov
@ 2022-05-04 16:50 ` Jeff Johnston
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Johnston @ 2022-05-04 16:50 UTC (permalink / raw)
To: Dimitar Dimitrov; +Cc: Newlib
Patch applied. Thanks.
-- Jeff J.
On Wed, May 4, 2022 at 12:32 PM Dimitar Dimitrov <dimitar@dinux.eu> wrote:
> 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>
> ---
> newlib/libc/stdlib/nano-mallocr.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/newlib/libc/stdlib/nano-mallocr.c
> b/newlib/libc/stdlib/nano-mallocr.c
> index 7ba1c0abc..99ad60dd0 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>
> --
> 2.35.1
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-05-04 16:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-04 16:31 [PATCH] Fix nano-malloc build Dimitar Dimitrov
2022-05-04 16:50 ` Jeff Johnston
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).