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/fcntlmodule.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/fcntlmodule.c')
-rw-r--r-- | sys/src/cmd/python/Modules/fcntlmodule.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/sys/src/cmd/python/Modules/fcntlmodule.c b/sys/src/cmd/python/Modules/fcntlmodule.c index 5198baa5e..0b9a1cbd1 100644 --- a/sys/src/cmd/python/Modules/fcntlmodule.c +++ b/sys/src/cmd/python/Modules/fcntlmodule.c @@ -339,9 +339,10 @@ fcntl_lockf(PyObject *self, PyObject *args) #if !defined(HAVE_LARGEFILE_SUPPORT) l.l_start = PyInt_AsLong(startobj); #else - l.l_start = PyLong_Check(startobj) ? - PyLong_AsLongLong(startobj) : - PyInt_AsLong(startobj); + if(PyLong_Check(startobj)) + l.l_start = PyLong_AsLongLong(startobj); + else + l.l_start = PyInt_AsLong(startobj); #endif if (PyErr_Occurred()) return NULL; @@ -350,9 +351,10 @@ fcntl_lockf(PyObject *self, PyObject *args) #if !defined(HAVE_LARGEFILE_SUPPORT) l.l_len = PyInt_AsLong(lenobj); #else - l.l_len = PyLong_Check(lenobj) ? - PyLong_AsLongLong(lenobj) : - PyInt_AsLong(lenobj); + if(PyLong_Check(lenobj)) + l.l_len = PyLong_AsLongLong(lenobj); + else + l.l_len = PyInt_AsLong(lenobj); #endif if (PyErr_Occurred()) return NULL; |