diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2003-05-03 09:14:54 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2003-05-03 09:14:54 (GMT) |
commit | c16f3bd8a391a68427a95e15a3c1894198ff0377 (patch) | |
tree | 113dca8c40c8a42cb665e6bcc4af44f9f68bd230 /Modules/fcntlmodule.c | |
parent | e59e2bab8fe0fc3d20e815ac0f9b83d361d0d715 (diff) | |
download | cpython-c16f3bd8a391a68427a95e15a3c1894198ff0377.zip cpython-c16f3bd8a391a68427a95e15a3c1894198ff0377.tar.gz cpython-c16f3bd8a391a68427a95e15a3c1894198ff0377.tar.bz2 |
Patch #708495: Port more stuff to OpenVMS.
Diffstat (limited to 'Modules/fcntlmodule.c')
-rw-r--r-- | Modules/fcntlmodule.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/fcntlmodule.c b/Modules/fcntlmodule.c index c495a77..9695057 100644 --- a/Modules/fcntlmodule.c +++ b/Modules/fcntlmodule.c @@ -182,7 +182,11 @@ fcntl_ioctl(PyObject *self, PyObject *args) return NULL; } Py_BEGIN_ALLOW_THREADS +#ifdef __VMS + ret = ioctl(fd, code, (void *)arg); +#else ret = ioctl(fd, code, arg); +#endif Py_END_ALLOW_THREADS if (ret < 0) { PyErr_SetFromErrno(PyExc_IOError); |