diff options
author | cinap_lenrek <cinap_lenrek@localhost> | 2011-05-21 00:42:08 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@localhost> | 2011-05-21 00:42:08 +0000 |
commit | e7d3e20912baa82965108997013710223152772c (patch) | |
tree | 02d4ed8e367319884582025cb1da2f4c45a05190 /sys/src/cmd/python/Modules/posixmodule.c | |
parent | 9adf75a7091c7bd2afefbeba62a2525d50df4404 (diff) |
remove keyboard stuff from other ports, make openssl and python compile on arm
Diffstat (limited to 'sys/src/cmd/python/Modules/posixmodule.c')
-rw-r--r-- | sys/src/cmd/python/Modules/posixmodule.c | 12 |
1 files changed, 8 insertions, 4 deletions
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; |