]> git.proxmox.com Git - mirror_libseccomp.git/commit - src/python/seccomp.pyx
python: fix build problems with Cython 0.20
authorPaul Moore <pmoore@redhat.com>
Fri, 7 Feb 2014 12:52:46 +0000 (07:52 -0500)
committerPaul Moore <pmoore@redhat.com>
Fri, 7 Feb 2014 12:52:46 +0000 (07:52 -0500)
commitdd673b5124b725d4ec531c482d312f7f7fd0b01a
treed9139807901606c885cd9a09a46002bc6439204c
parent2d09a74c7f04d29ae740db1e2187ff1a1886b2c3
python: fix build problems with Cython 0.20

Resolve the following build problem with Cython 0.20; I've also tested
this change on Cython 0.19.2 without problem.

>>>
Error compiling Cython file:
------------------------------------------------------------
...
        Helper function which should only be used internally by
        SyscallFilter objects and exists for the sole purpose of making it
        easier to deal with the varadic functions of the libseccomp API,
        e.g. seccomp_rule_add().
        """
        return self._arg
                  ^
------------------------------------------------------------

seccomp.pyx:194:19: Cannot convert 'scmp_arg_cmp' to Python object
>>>

Signed-off-by: Paul Moore <pmoore@redhat.com>
src/python/seccomp.pyx