From bca9fff70aa9ca7b7c40d47024ec9bdea9c25700 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Tue, 14 Jan 2025 20:28:52 +0100 Subject: [PATCH] Fix missing stdlib.h include for free() Building avrdude with current clang+mingw-w64 for arm64 on Windows leads to the following error: serbb_win32.c:294:3: error: call to undeclared library function 'free' with type 'void (void *)' Explicitely import stdlib.h for free() in avrdude.h where mmt_free() is defind to free() to fix this. Fixes #1940 --- src/avrdude.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/avrdude.h b/src/avrdude.h index bcb9b696f..56ae82d8f 100644 --- a/src/avrdude.h +++ b/src/avrdude.h @@ -20,6 +20,7 @@ #define avrdude_h #include +#include #define SYSTEM_CONF_FILE "avrdude.conf"