From e7d3e20912baa82965108997013710223152772c Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sat, 21 May 2011 00:42:08 +0000 Subject: remove keyboard stuff from other ports, make openssl and python compile on arm --- sys/src/cmd/python/Modules/posixmodule.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'sys/src/cmd/python/Modules/posixmodule.c') diff --git a/sys/src/cmd/python/Modules/posixmodule.c b/sys/src/cmd/python/Modules/posixmodule.c index 958fb63d3..a42d2be21 100644 --- a/sys/src/cmd/python/Modules/posixmodule.c +++ b/sys/src/cmd/python/Modules/posixmodule.c @@ -6053,8 +6053,10 @@ posix_lseek(PyObject *self, PyObject *args) #if !defined(HAVE_LARGEFILE_SUPPORT) pos = PyInt_AsLong(posobj); #else - pos = PyLong_Check(posobj) ? - PyLong_AsLongLong(posobj) : PyInt_AsLong(posobj); + if(PyLong_Check(posobj)) + pos = PyLong_AsLongLong(posobj); + else + pos = PyInt_AsLong(posobj); #endif if (PyErr_Occurred()) return NULL; @@ -6384,8 +6386,10 @@ posix_ftruncate(PyObject *self, PyObject *args) #if !defined(HAVE_LARGEFILE_SUPPORT) length = PyInt_AsLong(lenobj); #else - length = PyLong_Check(lenobj) ? - PyLong_AsLongLong(lenobj) : PyInt_AsLong(lenobj); + if(PyLong_Check(lenobj)) + length = PyLong_AsLongLong(lenobj); + else + length = PyInt_AsLong(lenobj); #endif if (PyErr_Occurred()) return NULL; -- cgit v1.2.3