Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 910bfb7

Browse files
committed
This local change was lost during the fixing of issue17192 to update
libffi to 3.0.13. (i'm not sure if it is needed anymore but see issue 10309 for details which makes no mention of upstream; this change is already in 3.3 and 3.4 but may need reapplying to 2.7 as done here)
1 parent 9330597 commit 910bfb7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Modules/_ctypes/libffi/src/dlmalloc.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,11 @@ DEFAULT_MMAP_THRESHOLD default: 256K
457457
#define LACKS_ERRNO_H
458458
#define MALLOC_FAILURE_ACTION
459459
#define MMAP_CLEARS 0 /* WINCE and some others apparently don't clear */
460+
#elif !defined _GNU_SOURCE
461+
/* mremap() on Linux requires this via sys/mman.h
462+
* See roundup issue 10309
463+
*/
464+
#define _GNU_SOURCE 1
460465
#endif /* WIN32 */
461466

462467
#ifdef __OS2__

0 commit comments

Comments
 (0)