[gccsdk] ttystate constant missing?

Ron beeb at woosh.co.nz
Thu Feb 9 04:29:05 PST 2012

In message <2142c95e52.beeb at ron1954.woosh.co.nz>
          Ron <beeb at woosh.co.nz> wrote:

> I have a compiler error with
> static enum { RESET, RAW, CBREAK } ttystate = RESET;
> It seems that RAW and CBREAK are defined in <sys/ioctl> but there is
> nothing around for RESET.
OK, It compiles if I change the spelling of RAW and CBREAK to an unknown.
So it may be that the problem is that those two have been defined, and
this function wants to set them at 0, 1, 2 ?

Ron M.


More information about the gcc mailing list