]> sourceware.org Git - newlib-cygwin.git/commitdiff
Fix nano-malloc build
authorDimitar Dimitrov <dimitar@dinux.eu>
Wed, 4 May 2022 16:31:43 +0000 (19:31 +0300)
committerJeff Johnston <jjohnstn@redhat.com>
Wed, 4 May 2022 16:49:55 +0000 (12:49 -0400)
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

index 7ba1c0abc86534337523c4bba1e20775f201dd02..99ad60dd0e05f49d7082a7eaa292f84293f5ee7d 100644 (file)
@@ -36,6 +36,7 @@
 #include <string.h>
 #include <errno.h>
 #include <malloc.h>
+#include <stdint.h>
 
 #if DEBUG
 #include <assert.h>
This page took 0.033736 seconds and 5 git commands to generate.