There are several #ifdef linux guards in the code, but nothing defined it. This caused several sparse warnings, so define it when building on linux. Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx> --- include/builddefs.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/builddefs.in b/include/builddefs.in index 7274cde8..00dec0ea 100644 --- a/include/builddefs.in +++ b/include/builddefs.in @@ -78,7 +78,7 @@ HAVE_FICLONE = @have_ficlone@ GCCFLAGS = -funsigned-char -fno-strict-aliasing -Wall ifeq ($(PKG_PLATFORM),linux) -PCFLAGS = -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 $(GCCFLAGS) +PCFLAGS = -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -Dlinux $(GCCFLAGS) endif ifeq ($(PKG_PLATFORM),darwin) PCFLAGS = -traditional-cpp $(GCCFLAGS) -- 2.48.0