rsa: don't use malloc.h in rsa-sign.c
authorJonathan Gray <jsg@jsg.id.au>
Fri, 15 May 2020 12:20:34 +0000 (22:20 +1000)
committerTom Rini <trini@konsulko.com>
Fri, 15 May 2020 18:47:35 +0000 (14:47 -0400)
stdlib.h is the header for malloc since at least c89/c90.
There is no system malloc.h on OpenBSD and trying to use malloc.h here
falls back to the U-Boot malloc.h breaking the build of qemu_arm64.

Fixes: 336d4615f8 ("dm: core: Create a new header file for 'compat' features")
Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
lib/rsa/rsa-sign.c

index 580c74470939c580f8181583df1d860c7afb8b56..621ddc43504527721033d4ce48ed85825e19eb9b 100644 (file)
@@ -4,7 +4,7 @@
  */
 
 #include "mkimage.h"
-#include <malloc.h>
+#include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
 #include <image.h>