jenkins-core-weekly: update to 2.491
[oi-userland.git] / components / python / python39 / patches / 30-madvise.patch
blobc5352685dc357d4794b66e9045e6305803f644a1
1 --- Python-3.9.1/Modules/mmapmodule.c.orig 2021-01-08 00:47:51.535788215 +0000
2 +++ Python-3.9.1/Modules/mmapmodule.c 2021-01-08 00:48:28.811370361 +0000
3 @@ -784,7 +784,7 @@
4 length = self->size - start;
7 - if (madvise(self->data + start, length, option) != 0) {
8 + if (posix_madvise(self->data + start, length, option) != 0) {
9 PyErr_SetFromErrno(PyExc_OSError);
10 return NULL;