Skip to content

Commit

Permalink
bpo-32660: Solaris should support constants like termios' FIONREAD (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jcea committed Jan 28, 2018
1 parent 6c51d51 commit f0a95f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
@@ -0,0 +1,2 @@
:mod:`termios` makes available ``FIONREAD``, ``FIONCLEX``, ``FIOCLEX``,
``FIOASYNC`` and ``FIONBIO`` also under Solaris/derivatives.
6 changes: 6 additions & 0 deletions Modules/termios.c
Expand Up @@ -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>

Expand Down

0 comments on commit f0a95f2

Please sign in to comment.