Resolve one Python 3.13 compatibility issue

Include <ctype.h> in SWIG code to prevent errors about implicit
declaration of function 'isspace' & 'isxdigit'. bz#2245793
This commit is contained in:
Pavel Cahyna 2024-02-11 20:29:10 +01:00
parent 2a25afb580
commit cfc50baa6a
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,12 @@
diff -ur OpenIPMI-2.0.34/swig/OpenIPMI.i OpenIPMI-2.0.34-python/swig/OpenIPMI.i
--- OpenIPMI-2.0.34/swig/OpenIPMI.i 2024-02-11 19:52:41.555777279 +0100
+++ OpenIPMI-2.0.34-python/swig/OpenIPMI.i 2024-02-11 20:11:59.061132776 +0100
@@ -38,6 +38,7 @@
#include <config.h>
#include <sys/types.h>
#include <sys/socket.h>
+#include <ctype.h>
#ifdef HAVE_GETADDRINFO
#include <netdb.h>
Only in OpenIPMI-2.0.34-python/swig: OpenIPMI.i~

View File

@ -15,6 +15,7 @@ Patch1: 0001-man.patch
Patch2: OpenIPMI-ax-python.patch
Patch3: OpenIPMI-sysconfig.patch
Patch4: OpenIPMI-c99.patch
Patch5: OpenIPMI-py313compat.patch
BuildRequires: make
BuildRequires: gdbm-devel swig glib2-devel net-snmp-devel ncurses-devel