This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/33933] "error: array type has incomplete element type" in system header



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]