mgr: Define PY_SSIZE_T_CLEAN ahead of every Python.h
authorPete Zaitcev <zaitcev@redhat.com>
Wed, 15 Dec 2021 05:04:34 +0000 (23:04 -0600)
committerThomas Goirand <zigo@debian.org>
Thu, 22 Sep 2022 13:35:37 +0000 (14:35 +0100)
Origin: upstream, https://github.com/ceph/ceph/commit/389054888f2aa782f73564125ec7a1ef0212d536.patch
Last-Update: 2022-09-22

Gbp-Pq: Name mgr-Define-PY_SSIZE_T_CLEAN-ahead-of-every-Python.h.patch

src/mgr/CMakeLists.txt

index 38aad299ccbdab27f32f5e5a2c3e19756dffef83..8e152e060eae09faefa75a51bd19dad84c9eea0c 100644 (file)
@@ -34,6 +34,7 @@ if(WITH_MGR)
     mgr_commands.cc
     $<TARGET_OBJECTS:mgr_cap_obj>)
   add_executable(ceph-mgr ${mgr_srcs})
+  target_compile_definitions(ceph-mgr PRIVATE PY_SSIZE_T_CLEAN)
   target_link_libraries(ceph-mgr
     osdc client heap_profiler
     global-static ceph-common