mirror of
https://git.freebsd.org/ports.git
synced 2025-07-05 11:29:15 -04:00
The `_frame` struct was moved to an internal header, however the public API is primarily read-only, and py-sip needs to build PyFrameObjects so still import the internal headers. Also sets the Py_BUILD_CORE define for py311a6, trying to restrict it to the frame header. Inspired by: cython repo With hat: kde Sponsored by: Netzkommune GmbH
15 lines
335 B
C
15 lines
335 B
C
--- siplib.c.orig 2022-02-01 13:29:23 UTC
|
|
+++ siplib.c
|
|
@@ -20,6 +20,12 @@
|
|
#include <Python.h>
|
|
#include <datetime.h>
|
|
#include <frameobject.h>
|
|
+#if PY_VERSION_HEX >= 0x030b00a6
|
|
+ #ifndef Py_BUILD_CORE
|
|
+ #define Py_BUILD_CORE 1
|
|
+ #endif
|
|
+ #include "internal/pycore_frame.h"
|
|
+#endif
|
|
|
|
#include <assert.h>
|
|
#include <stdio.h>
|