This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/33933] "error: array type has incomplete element type" in system header
- From: "danglin at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Oct 2007 20:37:49 -0000
- Subject: [Bug c/33933] "error: array type has incomplete element type" in system header
- References: <bug-33933-276@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from danglin at gcc dot gnu dot org 2007-10-28 20:37 -------
This avoids the problem:
#include <inttypes.h>
#include <sys/sar.h>
#include <sys/sysinfo.h>
int
main ()
{
return 0;
}
The header "sys/sar.h" declares struct syswait. Thus, there is
a work around for the autoconf macro that uses this test.
However, I'm still concerned about the hard error for this problem
when the C89 standard doesn't require it.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33933