X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/d9c0d17aa110ec0e5db5f0928fead5a1ff60a9e2..8b4410a1f3cb75e3d92b61176397655d509f81ee:/uip/scansbr.c diff --git a/uip/scansbr.c b/uip/scansbr.c index 6a9278bb..df182584 100644 --- a/uip/scansbr.c +++ b/uip/scansbr.c @@ -256,6 +256,8 @@ body:; while (state == BODY) { #ifdef LINUX_STDIO if (scnout->_IO_write_ptr == scnout->_IO_write_end) { +#elif defined(__DragonFly__) + if (((struct __FILE_public *)scnout)->_w <= 0) { #else if (scnout->_cnt <= 0) { #endif @@ -266,6 +268,10 @@ body:; state = m_getfld(state, name, scnout->_IO_write_ptr, (long)scnout->_IO_write_ptr-(long)scnout->_IO_write_end , inb); scnout->_IO_write_ptr += msg_count; +#elif defined(__DragonFly__) + state = m_getfld( state, name, ((struct __FILE_public *)scnout)->_p, -(((struct __FILE_public *)scnout)->_w), inb ); + ((struct __FILE_public *)scnout)->_w -= msg_count; + ((struct __FILE_public *)scnout)->_p += msg_count; #else state = m_getfld( state, name, scnout->_ptr, -(scnout->_cnt), inb ); scnout->_cnt -= msg_count;