From ba63f18d8ea7b4655c2489ac51940604f47db76e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Tarti=C3=A8re?= Date: Fri, 25 Jan 2019 15:22:15 -1000 Subject: [PATCH] Add missing header Fix build issue: ``` /tmp/libfreefare/libfreefare/felica.c:50:16: error: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Werror,-Wimplicit-function-declaration] if ((tag = malloc(sizeof(struct felica_tag)))) { ^ /tmp/libfreefare/libfreefare/felica.c:50:16: note: include the header or explicitly provide a declaration for 'malloc' /tmp/libfreefare/libfreefare/felica.c:64:5: error: implicit declaration of function 'free' is invalid in C99 [-Werror,-Wimplicit-function-declaration] free(tag); ^ 2 errors generated. ``` --- libfreefare/felica.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libfreefare/felica.c b/libfreefare/felica.c index f549119..443c595 100644 --- a/libfreefare/felica.c +++ b/libfreefare/felica.c @@ -13,6 +13,7 @@ #include #include +#include #include #include