summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJonathan Gray <jsg@jsg.id.au>2020-05-15 22:20:34 +1000
committerTom Rini <trini@konsulko.com>2020-05-15 14:47:35 -0400
commit0ff042d836f2a40b2104d4501111fbb340293c5c (patch)
tree0f51ebb953672fe6aca310d7fa9d5642b6cc15f1 /lib
parent7677fc08573550450dbd4728475b3f6bc3355b84 (diff)
downloadu-boot-0ff042d836f2a40b2104d4501111fbb340293c5c.tar.gz
u-boot-0ff042d836f2a40b2104d4501111fbb340293c5c.tar.bz2
u-boot-0ff042d836f2a40b2104d4501111fbb340293c5c.zip
rsa: don't use malloc.h in rsa-sign.c
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/rsa/rsa-sign.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rsa/rsa-sign.c b/lib/rsa/rsa-sign.c
index 580c744709..621ddc4350 100644
--- a/lib/rsa/rsa-sign.c
+++ b/lib/rsa/rsa-sign.c
@@ -4,7 +4,7 @@
*/
#include "mkimage.h"
-#include <malloc.h>
+#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <image.h>