Camm Maguire writes:
Thanks so much Vadim!  How about this?

Take care,

int
mingwlisten(FILE *fp) {

  int c = 0;
  if ((fp)->_IO_read_ptr >= (fp)->_IO_read_end) {
    ioctlsocket(fileno(fp), FIONREAD, &c);
    if (c<=0)
      return 1;
  }
  return 0;
}
We already tried this version of code on March 27.
It fails due to _IO_read_ptr and _IO_read_end.
There is no definition of such things in mingw
header files.

WBR

Vadim

--
     Vadim V. Zhytnikov

      <[EMAIL PROTECTED]>
     <[EMAIL PROTECTED]>


_______________________________________________
Gcl-devel mailing list
Gcl-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/gcl-devel

Reply via email to