Note:
build error without the patch
-----------------------------------------------------------------------------
make[4]: *** [localcharset.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
In file included from ./wchar.h:63:0,
from printf-args.h:42,
from printf-parse.h:26,
from printf-parse.c:37:
./stdio.h:143:1: error: 'gets' undeclared here (not in a function)
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT vasnprintf.lo -MD -MP -MF .deps/vasnprintf.Tpo -c vasnprintf.c -fPIC -DPIC -o .libs/vasnprintf.o
In file included from ./wchar.h:63:0,
from printf-args.h:42,
from printf-args.c:30:
./stdio.h:143:1: error: 'gets' undeclared here (not in a function)
In file included from glob.c:38:0:
./stdio.h:143:1: error: 'gets' undeclared here (not in a function)
make[4]: *** [printf-args.lo] Error 1
glob.c:168:1: warning: '__leaf__' attribute has no effect on unit local functions [-Wattributes]
glob.c:216:1: warning: '__leaf__' attribute has no effect on unit local functions [-Wattributes]
glob.c:217:1: warning: '__leaf__' attribute has no effect on unit local functions [-Wattributes]
make[4]: *** [printf-parse.lo] Error 1
In file included from snprintf.c:22:0:
./stdio.h:143:1: error: 'gets' undeclared here (not in a function)
In file included from vasnprintf.c:71:0:
./stdio.h:143:1: error: 'gets' undeclared here (not in a function)
make[4]: *** [glob.lo] Error 1
make[4]: *** [snprintf.lo] Error 1
make[4]: *** [vasnprintf.lo] Error 1
-----------------------------------------------------------------------------