Skip to content
Commit 1eec4956 authored by Tom Rini's avatar Tom Rini
Browse files

image.c: Fix build warning on macOS



When building tools on macOS today we see:
In file included from tools/common/image.c:1:
./tools/../common/image.c:501:10: error: implicit declaration of function 'ulz4fn' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                        ret = ulz4fn(image_buf, image_len, load_buf, &size);
                              ^
as we get the system lz4.h rather than our own.  Rework our include list
so that target builds get <lz4.h> and tool builds get "lz4.h" to specify
local rather than system includes.

Signed-off-by: default avatarTom Rini <trini@konsulko.com>
parent 94e922c7
Loading
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment