[Python-modules-commits] [python-llfuse] 13/16: Work around Cython 0.23 bug.

Nikolaus Rath nikratio-guest at moszumanska.debian.org
Tue Mar 8 17:38:02 UTC 2016


This is an automated email from the git hooks/post-receive script.

nikratio-guest pushed a commit to branch master
in repository python-llfuse.

commit 8a9d3f8e5417c37dd138b51cf89dbd29e886c8e2
Author: Nikolaus Rath <Nikolaus at rath.org>
Date:   Tue Feb 23 16:39:59 2016 -0800

    Work around Cython 0.23 bug.
    
    Origin: Debian
    Forwarded: not-needed
    
    Cython 0.23 has a wrong definition of posix.signal.sigaction_t,
    so we provide the correct one. This is fixed in Cython 0.24.
---
 src/llfuse.pyx | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/llfuse.pyx b/src/llfuse.pyx
index 10c61a9..357aef8 100644
--- a/src/llfuse.pyx
+++ b/src/llfuse.pyx
@@ -46,7 +46,7 @@ from libc.errno cimport ETIMEDOUT, EPROTO, EINVAL, EPERM, ENOMSG
 from posix.unistd cimport getpid
 from posix.time cimport timespec
 from posix.signal cimport (sigemptyset, sigaddset, SIG_BLOCK, SIG_SETMASK,
-                           siginfo_t, sigaction_t, sigaction, SA_SIGINFO)
+                           siginfo_t, sigaction, SA_SIGINFO)
 from cpython.bytes cimport (PyBytes_AsStringAndSize, PyBytes_FromStringAndSize,
                             PyBytes_AsString, PyBytes_FromString, PyBytes_AS_STRING)
 from cpython.buffer cimport (PyObject_GetBuffer, PyBuffer_Release,
@@ -61,6 +61,13 @@ from libc cimport signal
 # EXTERNAL DEFINITIONS
 ######################
 
+cdef extern from * nogil:
+     cdef struct sigaction_t "sigaction":
+        void     sa_handler(int)
+        void     sa_sigaction(int, siginfo_t *, void *)
+        sigset_t sa_mask
+        int      sa_flags
+
 cdef extern from "lock.h" nogil:
     int acquire(double timeout) nogil
     int release() nogil

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-llfuse.git



More information about the Python-modules-commits mailing list