bpo-32660: Solaris should support constants like termios' FIONREAD (#5328)

This commit is contained in:
jcea 2018-01-28 14:00:48 +01:00 committed by GitHub
parent 6c51d51880
commit f0a95f27c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,2 @@
:mod:`termios` makes available ``FIONREAD``, ``FIONCLEX``, ``FIOCLEX``,
``FIOASYNC`` and ``FIONBIO`` also under Solaris/derivatives.

View File

@ -8,6 +8,12 @@
#define CTRL(c) ((c)&037)
#endif
#if defined(__sun)
/* We could do better. Check issue-32660 */
#include <sys/filio.h>
#include <sys/sockio.h>
#endif
#include <termios.h>
#include <sys/ioctl.h>