don't needlessly include sys/mman.h
This commit is contained in:
parent
5a32a00f46
commit
baa4641a44
@ -6,6 +6,8 @@
|
||||
|
||||
#if MM==0
|
||||
#include "opt/mm_malloc.h"
|
||||
#undef ENABLE_GC
|
||||
#define ENABLE_GC 0
|
||||
#elif MM==1
|
||||
#include "opt/mm_buddy.h"
|
||||
#elif MM==2
|
||||
|
||||
@ -1,4 +1,6 @@
|
||||
#if !NO_MMAP
|
||||
#include <sys/mman.h>
|
||||
#endif
|
||||
#include "gc.c"
|
||||
|
||||
#ifdef OBJ_COUNTER
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
#include "gc.h"
|
||||
#include <sys/mman.h>
|
||||
|
||||
typedef struct EmptyValue EmptyValue;
|
||||
struct EmptyValue { // needs set: mmInfo; type=t_empty; next; everything else can be garbage
|
||||
|
||||
@ -1,4 +1,6 @@
|
||||
#if !NO_MMAP
|
||||
#include <sys/mman.h>
|
||||
#endif
|
||||
#include "gc.c"
|
||||
|
||||
#ifdef OBJ_COUNTER
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
#include <sys/mman.h>
|
||||
#include <stdlib.h>
|
||||
#include <malloc.h>
|
||||
extern u64 mm_heapAlloc;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user