Blob Blame History Raw
From 22ea5dcfb2ad7f2d217b174bbda1d7d96f4d41e8 Mon Sep 17 00:00:00 2001
From: Chris Burr <chrisburr@users.noreply.github.com>
Date: Thu, 7 Apr 2022 01:48:44 +0200
Subject: [PATCH] Fix Python 3.10+ issues from PY_SSIZE_T_CLEAN not being set

---
 bindings/python/src/PyXRootD.hh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bindings/python/src/PyXRootD.hh b/bindings/python/src/PyXRootD.hh
index dcdacd1a1..a97918686 100644
--- a/bindings/python/src/PyXRootD.hh
+++ b/bindings/python/src/PyXRootD.hh
@@ -25,6 +25,7 @@
 #ifndef PYXROOTD_HH_
 #define PYXROOTD_HH_
 
+#define PY_SSIZE_T_CLEAN
 #include <Python.h>
 #include <string>
 #include "structmember.h"
-- 
2.35.1