diff --git a/include/image.h b/include/image.h index 3844be67d8e014d9c80b6a0ce12cd2fe70faac1d..60b924a5b6feb43a78a16781699547a8d5485247 100644 --- a/include/image.h +++ b/include/image.h @@ -23,6 +23,7 @@ struct lmb; #ifdef USE_HOSTCC +#include /* new uImage format support enabled on host */ #define CONFIG_FIT 1 diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c index 1173eea78206dca66942380f49df22aa5004ae48..daa02a760e3744b252269113f1784671ed2fb03f 100644 --- a/tools/env/fw_env.c +++ b/tools/env/fw_env.c @@ -8,6 +8,8 @@ * SPDX-License-Identifier: GPL-2.0+ */ +#define _GNU_SOURCE + #include #include #include diff --git a/tools/imagetool.h b/tools/imagetool.h index 3e15b4e22b9a0086c57d3bb6c61a2abe35838a31..b7874f47cd228f0a6aaf93f9098979f36a7ca5ca 100644 --- a/tools/imagetool.h +++ b/tools/imagetool.h @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include diff --git a/tools/proftool.c b/tools/proftool.c index 348295198cd3d061dd8fc83baa10a6040f25e338..9ce7a7796e7f04b310eae4dc713d6c6a613e0acb 100644 --- a/tools/proftool.c +++ b/tools/proftool.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include