From 32f507dc513f8385ed7ee5c8f3fdef7d7d79adaf Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 8 Dec 2021 17:26:31 +0000 Subject: [PATCH] SDK: Add stdlib.h include to pull in `abort()` (backport #21700) (#21704) * SDK: Add stdlib.h include to pull in `abort()` (#21700) (cherry picked from commit 923720f529c8decd564194ae0c3b77fc720a8a95) # Conflicts: # sdk/bpf/c/inc/sol/assert.h * Fix merge conflict Co-authored-by: Jon Cinque --- sdk/bpf/c/inc/solana_sdk.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk/bpf/c/inc/solana_sdk.h b/sdk/bpf/c/inc/solana_sdk.h index 302492ed7d..728348f4c9 100644 --- a/sdk/bpf/c/inc/solana_sdk.h +++ b/sdk/bpf/c/inc/solana_sdk.h @@ -699,6 +699,7 @@ uint64_t entrypoint(const uint8_t *input); * Stub functions when building tests */ #include +#include void sol_log_(const char *s, uint64_t len) { printf("Program log: %s\n", s); }