Since python 3.9 exports the argv as wchar_t now, we
can no longer attempt to mangle it. Remove this code
on python 3.9 so it builds again.
This fixes Debian's FTBFS https://bugs.debian.org/972763, and this
part of our Cirrus test builds on MacOS.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
// Probably we should use autoconf or something and set HAVE_PY_GETARGCARGV...
-#if __WIN32__ || __CYGWIN__
+#if __WIN32__ || __CYGWIN__ || PY_VERSION_HEX >= 0x03090000
// There's no 'ps' on win32 anyway, and Py_GetArgcArgv() isn't available.
static void unpythonize_argv(void) { }