Avoid endless recursions if config.h includes some header files.
authorBruno Haible <bruno@clisp.org>
Tue, 30 Aug 2011 07:57:33 +0000 (09:57 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 30 Aug 2011 07:57:33 +0000 (09:57 +0200)
commitc29a7464f1218da01129bea72cbfc3dcb524881a
tree49bc301a81c113a3a39a8aaac8a9d92162ae8a6a
parent84b1687bd51d4d47773a434ec12812292c4c0942
Avoid endless recursions if config.h includes some header files.

* lib/fopen.c (__need_FILE): Define already before including config.h.
* lib/freopen.c (__need_FILE): Likewise.
* lib/open.c (__need_system_fcntl_h): Likewise.
* lib/stat.c (__need_system_sys_stat_h): Likewise.
* lib/lstat.c (__need_system_sys_stat_h): Likewise.
Reported by Michael Goffioul <michael.goffioul@gmail.com>.
ChangeLog
lib/fopen.c
lib/freopen.c
lib/lstat.c
lib/open.c
lib/stat.c