This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Trying to build on DYNIX/ptx: 'strbuf' in cppcharset.c
- From: neroden at twcny dot rr dot com (Nathanael Nerode)
- To: gcc at gcc dot gnu dot org
- Date: Thu, 25 Sep 2003 00:54:01 -0400
- Subject: Trying to build on DYNIX/ptx: 'strbuf' in cppcharset.c
Building ccpcharset.o:
../../gcc-3.4-20030827/gcc/cppcharset.c:96: redefinition of `struct strbuf'
On this system, 'struct strbuf' is defined in sys/stropts.h, included
by stropts.h (fairly standard) -- but this is included by unistd.h.
This inclusion in unistd.h can be avoided by defining _POSIX_SOURCE, or
_AES_SOURCE, _XOPEN_SOURCE.
Suggestions for the correct fix? Perhaps 'strbuf' in ccpcharset.c
should just be renamed.
--
Nathanael Nerode <neroden at gcc.gnu.org>
http://home.twcny.rr.com/nerode/neroden/fdl.html