Porting to Haiku.

getrusage does not implement resident memory gathering, no shm api neither.
This commit is contained in:
David Carlier
2020-06-14 15:26:43 +00:00
parent bfe5b88e78
commit 67d87dd2a9
14 changed files with 40 additions and 10 deletions

View File

@ -61,12 +61,14 @@ ifeq "$(shell echo '$(HASH)include <sys/ipc.h>@$(HASH)include <sys/shm.h>@int ma
else
SHMAT_OK=0
CFLAGS+=-DUSEMMAP=1
LDFLAGS += -lrt
endif
ifeq "$(TEST_MMAP)" "1"
SHMAT_OK=0
CFLAGS+=-DUSEMMAP=1
endif
ifneq "$(shell uname -s)" "Haiku"
LDFLAGS += -lrt
endif

View File

@ -231,7 +231,7 @@ static void edit_params(u32 argc, char **argv) {
}
#ifdef USEMMAP
#if defined(USEMMAP) && !defined(__HAIKU__)
cc_params[cc_par_cnt++] = "-lrt";
#endif

View File

@ -35,7 +35,9 @@
#include <assert.h>
#include <sys/mman.h>
#ifndef USEMMAP
#include <sys/shm.h>
#endif
#include <sys/wait.h>
#include <sys/types.h>