comparison upreckon/_unixmodule.cpp @ 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 0bd782fd41dc
children 4f69e30abbd5
comparison
equal deleted inserted replaced
189:0480dfa50366 190:3ab18984e3e3
1323 #else 1323 #else
1324 #define INIT_FAIL return 1324 #define INIT_FAIL return
1325 PyMODINIT_FUNC init_unix(void) 1325 PyMODINIT_FUNC init_unix(void)
1326 #endif 1326 #endif
1327 { 1327 {
1328 #ifdef HAVE_TERMIOS_H
1328 struct termios new_termios; 1329 struct termios new_termios;
1330 #endif
1329 PyObject *exceptions, *module; 1331 PyObject *exceptions, *module;
1330 1332
1331 _unix__PopenPlaceholderType.tp_new = PyType_GenericNew; 1333 _unix__PopenPlaceholderType.tp_new = PyType_GenericNew;
1332 if (PyType_Ready(&_unix__PopenPlaceholderType) == -1) 1334 if (PyType_Ready(&_unix__PopenPlaceholderType) == -1)
1333 { 1335 {