]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/cephfs: fix including of platform_errno.h 65839/head
authorRishabh Dave <ridave@redhat.com>
Wed, 8 Oct 2025 17:11:25 +0000 (22:41 +0530)
committerRishabh Dave <ridave@redhat.com>
Fri, 10 Oct 2025 13:02:21 +0000 (18:32 +0530)
Introduced-by: 2439bcb87398
Fixes: https://tracker.ceph.com/issues/73435
Signed-off-by: Rishabh Dave <ridave@redhat.com>
src/pybind/cephfs/c_cephfs.pxd
src/pybind/cephfs/mock_cephfs.pxi
src/pybind/cephfs/types.pxd

index 30e9a246d335d8ab5d078b3771abfb0f1f646626..141ad718667480f2407d64a334968da9314e9288 100644 (file)
@@ -4,6 +4,10 @@
 from libc.stdint cimport *
 from types cimport *
 
+cdef extern from "../include/platform_errno.h":
+    ctypedef signed int int32_t;
+    int32_t ceph_to_hostos_errno(int32_t e)
+
 cdef extern from "cephfs/ceph_ll_client.h":
     cdef struct statx "ceph_statx":
         uint32_t    stx_mask
index 631625e861a34a80927aaeef7852b281f2fe017b..fcda27bbc357c14779284d57fb88998ffbbbae3e 100644 (file)
@@ -4,6 +4,11 @@ from libc.stdint cimport *
 from types cimport timespec
 
 
+cdef:
+    int32_t ceph_to_hostos_errno(int32_t e):
+        pass
+
+
 cdef:
     cdef struct statx "ceph_statx":
         uint32_t    stx_mask
index d59664ec07cd66ab84f7b9a2eb74d949d394e0eb..cbe31cbf4ba8031b7a17b23edbf06badfb9987d9 100644 (file)
@@ -55,7 +55,3 @@ ELSE:
             unsigned short int d_reclen
             unsigned char d_type
             char d_name[256]
-
-cdef extern from "../../include/platform_errno.h":
-    ctypedef signed int int32_t;
-    int32_t ceph_to_hostos_errno(int32_t e)