changeset 190:3ab18984e3e3

Fixed compilation on systems without termios.h
author Oleg Oshmyan <chortos@inbox.lv>
date Thu, 28 Jul 2011 20:27:22 +0300
parents 0480dfa50366
children 4f69e30abbd5
files upreckon/_unixmodule.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;