Derek Robert Price <address@hidden> writes:
Here's a quick patch to remove the K&R support from getndelim2 since
GNULIB standardized on C89.
That patch assumes <stdlib.h>, but gnulib currently assumes only the
minimal headers supplied by C89 freestanding compilers; it doesn't
assume the extra headers supplied by C89 hosted compilers.
Our current suggestion for older hosts is "install an old version of
GCC first; then use that". But on native K&R hosts, GCC is merely a
freestanding compiler; it's not a hosted compiler, because it doesn't
guarantee C89 conformance for headers other than the headers that GCC
supplies itself, namely <float.h>, <limits.h>, <stdarg.h>, and
<stddef.h>.