mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-18 10:02:12 +00:00
fixed mremap() usage on linux
This commit is contained in:
parent
7c21154ff7
commit
365ded42db
1 changed files with 7 additions and 5 deletions
|
@ -24,8 +24,14 @@
|
||||||
* =======================================================================
|
* =======================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <errno.h>
|
|
||||||
|
/* For mremap() - must be before sys/mman.h include! */
|
||||||
|
#if defined( __linux__ )
|
||||||
|
#define _GNU_SOURCE
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
#include <errno.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
|
||||||
#include "../common/header/common.h"
|
#include "../common/header/common.h"
|
||||||
|
@ -35,10 +41,6 @@
|
||||||
#define MAP_ANONYMOUS MAP_ANON
|
#define MAP_ANONYMOUS MAP_ANON
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* For mremap() */
|
|
||||||
#if defined( __linux__ )
|
|
||||||
#define __USE_GNU
|
|
||||||
#endif
|
|
||||||
|
|
||||||
byte *membase;
|
byte *membase;
|
||||||
int maxhunksize;
|
int maxhunksize;
|
||||||
|
|
Loading…
Reference in a new issue