diff --git a/mem.h b/mem.h index e84b36ca..cbecf73c 100644 --- a/mem.h +++ b/mem.h @@ -9,6 +9,10 @@ #ifndef _COAP_MEM_H_ #define _COAP_MEM_H_ +#ifdef HAVE_STDLIB_H +#include +#endif + /** * Initializes libcoap's memory management. This function must be * called once before coap_malloc() can be used on constrained