mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
- Issue #10309: Define _GNU_SOURCE so that mremap() gets the proper
signature. Without this, architectures where sizeof void* != sizeof int are broken. Patch given by Hallvard B Furuseth.
This commit is contained in:
commit
2ebada4233
2 changed files with 11 additions and 2 deletions
|
|
@ -457,6 +457,11 @@ DEFAULT_MMAP_THRESHOLD default: 256K
|
|||
#define LACKS_ERRNO_H
|
||||
#define MALLOC_FAILURE_ACTION
|
||||
#define MMAP_CLEARS 0 /* WINCE and some others apparently don't clear */
|
||||
#elif !defined _GNU_SOURCE
|
||||
/* mremap() on Linux requires this via sys/mman.h
|
||||
* See roundup issue 10309
|
||||
*/
|
||||
#define _GNU_SOURCE 1
|
||||
#endif /* WIN32 */
|
||||
|
||||
#if defined(DARWIN) || defined(_DARWIN)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue