14
0
Files
python-python-prctl/bigendian.patch
Tomáš Chvátal 311551ec9f Accepting request 832752 from home:michals
- Fixing arch-dependent test failures (bsc#1176085):
  * renamed failing-on-i586.patch to memory_failure_early_kill.patch
    * and modified it to skip the test also on s390x
  * added bigendian.patch
  * added powerpc.patch
  * huge thanks to Michal Suchánek

OBS-URL: https://build.opensuse.org/request/show/832752
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-prctl?expand=0&rev=5
2020-09-07 12:27:41 +00:00

28 lines
968 B
Diff

Index: python-prctl-1.7/_prctlmodule.c
===================================================================
--- python-prctl-1.7.orig/_prctlmodule.c
+++ python-prctl-1.7/_prctlmodule.c
@@ -50,6 +50,7 @@ prctl_prctl(PyObject *self, PyObject *ar
{
long option = 0;
long arg = 0;
+ int intarg = 0;
char *argstr = NULL;
char name[17] = "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0";
int result;
@@ -286,12 +287,12 @@ prctl_prctl(PyObject *self, PyObject *ar
#ifdef PR_GET_TID_ADDRESS
case(PR_GET_TID_ADDRESS):
#endif
- result = prctl(option, &arg, 0, 0, 0);
+ result = prctl(option, &intarg, 0, 0, 0);
if(result < 0) {
PyErr_SetFromErrno(PyExc_OSError);
return NULL;
}
- return PyInt_FromLong(arg);
+ return PyInt_FromLong(intarg);
case(PR_SET_NAME):
case(PR_GET_NAME):
result = prctl(option, name, 0, 0, 0);