# HG changeset patch # User Oleg Oshmyan # Date 1311874042 -10800 # Node ID 3ab18984e3e32b200e5a007871ca45e00369a60a # Parent 0480dfa503663ebf3e6908da734cacfb4b851bd2 Fixed compilation on systems without termios.h diff -r 0480dfa50366 -r 3ab18984e3e3 upreckon/_unixmodule.cpp --- a/upreckon/_unixmodule.cpp Wed Jul 27 17:55:00 2011 +0300 +++ b/upreckon/_unixmodule.cpp Thu Jul 28 20:27:22 2011 +0300 @@ -1325,7 +1325,9 @@ PyMODINIT_FUNC init_unix(void) #endif { +#ifdef HAVE_TERMIOS_H struct termios new_termios; +#endif PyObject *exceptions, *module; _unix__PopenPlaceholderType.tp_new = PyType_GenericNew;