Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f0a95f2

Browse files
authored
bpo-32660: Solaris should support constants like termios' FIONREAD (#5328)
1 parent 6c51d51 commit f0a95f2

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
:mod:`termios` makes available ``FIONREAD``, ``FIONCLEX``, ``FIOCLEX``,
2+
``FIOASYNC`` and ``FIONBIO`` also under Solaris/derivatives.

Modules/termios.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
#define CTRL(c) ((c)&037)
99
#endif
1010

11+
#if defined(__sun)
12+
/* We could do better. Check issue-32660 */
13+
#include <sys/filio.h>
14+
#include <sys/sockio.h>
15+
#endif
16+
1117
#include <termios.h>
1218
#include <sys/ioctl.h>
1319

0 commit comments

Comments
 (0)