Fixes for cfget[io]speed

Yaakov (Cygwin/X)
Tue Jan 11 09:36:00 GMT 2011

I discovered some compliance issues with cfget[io]speed:

* POSIX requires these to be declared (at least) as functions[1];
* POSIX requires their argument to be const[1];
* the macros are not safe for C++ code.

The following patch fixes these issues, providing that constifying the
arguments doesn't change the ABI.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: posix-cfgetospeed.patch
Type: text/x-patch
Size: 1945 bytes
Desc: not available
URL: <>

More information about the Cygwin-patches mailing list