mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-25 22:10:59 +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 <errno.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
#include "../common/header/common.h"
|
||||
|
@ -35,10 +41,6 @@
|
|||
#define MAP_ANONYMOUS MAP_ANON
|
||||
#endif
|
||||
|
||||
/* For mremap() */
|
||||
#if defined( __linux__ )
|
||||
#define __USE_GNU
|
||||
#endif
|
||||
|
||||
byte *membase;
|
||||
int maxhunksize;
|
||||
|
|
Loading…
Reference in a new issue