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 923720f529)

# Conflicts:
#	sdk/bpf/c/inc/sol/assert.h

* Fix merge conflict

Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
This commit is contained in:
mergify[bot]
2021-12-08 17:26:31 +00:00
committed by GitHub
parent 387d5af52e
commit 32f507dc51

View File

@ -699,6 +699,7 @@ uint64_t entrypoint(const uint8_t *input);
* Stub functions when building tests
*/
#include <stdio.h>
#include <stdlib.h>
void sol_log_(const char *s, uint64_t len) {
printf("Program log: %s\n", s);
}