devel/py-freebsd: Fix build with Python 3.12+
cc -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -fPIC -I/usr/local/include/python3.12 -c src/freebsdmodule.c -o build/temp.freebsd-15.0-RELEASE-p10-amd64-cpython-312/src/freebsdmodule.o
In file included from src/freebsdmodule.c:172:
In file included from src/.sources.def:7:
src/kqueue.c:248:2: error: incompatible pointer to integer conversion initializing 'Py_ssize_t' (aka 'long') with an expression of type 'void *' [-Wint-conversion]
248 | PyObject_HEAD_INIT(NULL)
| ^~~~~~~~~~~~~~~~~~~~~~~~/usr/local/include/python3.12/object.h:142:9: note: expanded from macro 'PyObject_HEAD_INIT'
142 | (type) \
| ^~~~~~In file included from src/freebsdmodule.c:172:
In file included from src/.sources.def:7:
src/kqueue.c:556:2: error: incompatible pointer to integer conversion initializing 'Py_ssize_t' (aka 'long') with an expression of type 'void *' [-Wint-conversion]
556 | PyObject_HEAD_INIT(NULL)
| ^~~~~~~~~~~~~~~~~~~~~~~~/usr/local/include/python3.12/object.h:142:9: note: expanded from macro 'PyObject_HEAD_INIT'
142 | (type) \
| ^~~~~~2 errors generated.
error: command '/usr/bin/cc' failed with exit code 1
ERROR Backend subprocess exited when trying to invoke build_wheel
- Error code 1