blob: 557b485fbafe70a98bdfdfcee0ecf9c0e9663d9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
From 8cbf6d40a0132764ad51e7416aa7034966875091 Mon Sep 17 00:00:00 2001
From: Zdenek Dohnal <zdohnal@redhat.com>
Date: Mon, 28 Jun 2021 13:17:45 +0200
Subject: [PATCH] cupsipp.h: define PY_SSIZE_T_CLEAN
Fixes traceback during IPPRequest.writeIO with Python 3.10
---
NEWS | 2 ++
cupsipp.h | 2 ++
2 files changed, 4 insertions(+)
diff --git a/cupsipp.h b/cupsipp.h
index 2a15ce6..b890198 100644
--- a/cupsipp.h
+++ b/cupsipp.h
@@ -21,6 +21,8 @@
#ifndef HAVE_CUPSIPP_H
#define HAVE_CUPSIPP_H
+#define PY_SSIZE_T_CLEAN
+
#include <Python.h>
#include <cups/ipp.h>
|