Fix Haiku references, no <sys/syscall.h> and missing defines for USEMMAP

This commit is contained in:
begasus
2021-04-04 17:41:43 +00:00
parent 0709d00b10
commit 845c584b9c
2 changed files with 6 additions and 3 deletions

View File

@ -34,8 +34,10 @@
#include <errno.h>
#include <sys/mman.h>
#include <sys/syscall.h>
#ifndef __HAIKU__
#include <sys/syscall.h>
#endif
#ifndef USEMMAP
#include <sys/shm.h>
#endif
#include <sys/wait.h>

View File

@ -45,7 +45,6 @@
#include <sys/wait.h>
#include <sys/time.h>
#include <sys/shm.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/resource.h>
@ -53,7 +52,9 @@
#include <netinet/ip6.h>
#include <arpa/inet.h>
#include <sys/mman.h>
#include <sys/shm.h>
#ifndef USEMMAP
#include <sys/shm.h>
#endif
#include <sys/socket.h>
#include <netdb.h>