Commit b2877dd1 authored by Fred Drake's avatar Fred Drake

Only import termio.h on OSF, and add a comment about why it is needed there.

This header does not exist on all Unix flavors; FreeBSD in particular does
not include it.

This closes SF bug #422320.
parent b8ac0096
......@@ -5,7 +5,11 @@
#define PyInit_termios inittermios
#include <termios.h>
#ifdef __osf__
/* On OSF, sys/ioctl.h requires that struct termio already be defined,
* so this needs to be included first on that platform. */
#include <termio.h>
#endif
#include <sys/ioctl.h>
#ifdef __BEOS__
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment