mirror of
https://github.com/partic2/libffi
synced 2026-11-09 17:47:19 +00:00
Merge pull request #233 from berkerpeksag/mremap
Define _GNU_SOURCE on Linux for mremap()
This commit is contained in:
@@ -438,6 +438,11 @@ DEFAULT_MMAP_THRESHOLD default: 256K
|
||||
|
||||
*/
|
||||
|
||||
#if defined __linux__ && !defined _GNU_SOURCE
|
||||
/* mremap() on Linux requires this via sys/mman.h */
|
||||
#define _GNU_SOURCE 1
|
||||
#endif
|
||||
|
||||
#ifndef WIN32
|
||||
#ifdef _WIN32
|
||||
#define WIN32 1
|
||||
|
||||
Reference in New Issue
Block a user