autoconf: don't assume sys/stat.h and sys/types.h when testing C89
commit234d3c32688c335ee19e8d7f409e713badb5c669
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 20 Nov 2010 23:26:39 +0000 (20 15:26 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 20 Nov 2010 23:27:16 +0000 (20 15:27 -0800)
tree06a62e19ac96d3a8a62e08bf3584f80dbc4bd150
parent5668bc97911b37eba62f3b1521cfd5285a76cc67
autoconf: don't assume sys/stat.h and sys/types.h when testing C89

Problem reported by Patrick Pelissier in
<http://lists.gnu.org/archive/html/bug-autoconf/2010-11/msg00019.html>.
* lib/autoconf/c.m4 (_AC_PROG_CC_C89): Don't include sys/types.h
and sys/stat.h.  Instead, define a dummy struct stat.  C89 doesn't
guarantee sys/types.h and sys/stat.h.
ChangeLog
lib/autoconf/c.m4