File make-compatible-with-old-gcc.patch of Package saltbundlepy-m2crypto
--- a/src/SWIG/_bio.i
+++ b/src/SWIG/_bio.i
@@ -311,8 +311,9 @@
static BIO_METHOD *
BIO_meth_new( int type, const char *name )
{
+ BIO_METHOD *method;
Py_BEGIN_ALLOW_THREADS
- BIO_METHOD *method = PyMem_Malloc(sizeof(BIO_METHOD));
+ method = PyMem_Malloc(sizeof(BIO_METHOD));
Py_END_ALLOW_THREADS
memset( method, 0, sizeof(BIO_METHOD) );
--- a/src/SWIG/_m2crypto_wrap.c
+++ b/src/SWIG/_m2crypto_wrap.c
@@ -6008,8 +6008,9 @@
static BIO_METHOD *
BIO_meth_new( int type, const char *name )
{
+ BIO_METHOD *method;
Py_BEGIN_ALLOW_THREADS
- BIO_METHOD *method = PyMem_Malloc(sizeof(BIO_METHOD));
+ method = PyMem_Malloc(sizeof(BIO_METHOD));
Py_END_ALLOW_THREADS
memset( method, 0, sizeof(BIO_METHOD) );