------- Comment #7 from sherpya at netfarm dot it  2010-04-15 10:03 -------
the correct way should be
#if defined(FIONREAD) && !defined(_WIN32)

or if you prefer __MINGW32__

(note _WIN32 is not defined on cygwin)

ioctlsocket is not suitable because it does not work on file descriptors
also it will need ws2_32 library at link time


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43738

Reply via email to