busybox/scripts/basic
Ron Yorston 27c1bc8dfb build system: avoid build failure during bisection
Commit 4bdc914ff (build system: fix compiler warnings) added a
test on the return value of fgets() in split-include.c.

During bisection it's possible to go back to a state where a
configuration value didn't exist.  This results in an empty
include file corresponding to the missing feature.  If a
subsequent bisection returns to a state where the feature exists
split-include treats the empty file as an error and the build
fails.

Add a call to ferror() to distinguish between fgets() failing
due to an error and due to there being no data to read.

Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2021-04-13 18:26:46 +02:00
..
.gitignore add .gitignore files 2009-05-05 09:05:30 -04:00
docproc.c typo fixes 2015-05-25 13:46:36 +02:00
fixdep.c build system: stop including alloca.h, stdlib.h provides it 2014-01-09 11:02:46 +01:00
Makefile "kernel config" -> "busybox config" 2006-11-30 22:40:32 +00:00
split-include.c build system: avoid build failure during bisection 2021-04-13 18:26:46 +02:00