#include #include #include __attribute__((visibility("default"))) void free(void *ptr) { qurt_free(ptr); ptr = 0; } __attribute__((visibility("default"))) void *malloc(size_t size) { return qurt_malloc(size); } __attribute__((visibility("default"))) void *calloc(size_t nmemb, size_t size) { PX4_ERR("Undefined calloc called"); return (void *) 0; } __attribute__((visibility("default"))) void *realloc(void *ptr, size_t size) { PX4_ERR("Undefined realloc called"); return (void *) 0; } __attribute__((visibility("default"))) int nanosleep(const struct timespec *req, struct timespec *rem) { PX4_ERR("Undefined nanosleep called"); return -1; }