mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-16 03:48:08 +00:00
Haiku build fix. librt is necessary for Linux primarly and SunOS
This commit is contained in:
@ -65,7 +65,7 @@ endif
|
|||||||
|
|
||||||
ifeq "$(shell uname)" "SunOS"
|
ifeq "$(shell uname)" "SunOS"
|
||||||
CFLAGS_OPT += -Wno-format-truncation
|
CFLAGS_OPT += -Wno-format-truncation
|
||||||
LDFLAGS=-lkstat
|
LDFLAGS=-lkstat -lrt
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef STATIC
|
ifdef STATIC
|
||||||
@ -196,7 +196,7 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq "$(filter Linux GNU%,$(shell uname))" ""
|
ifneq "$(filter Linux GNU%,$(shell uname))" ""
|
||||||
LDFLAGS += -ldl
|
LDFLAGS += -ldl -lrt
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq "$(findstring FreeBSD, $(shell uname))" ""
|
ifneq "$(findstring FreeBSD, $(shell uname))" ""
|
||||||
@ -254,13 +254,13 @@ ifeq "$(shell echo '$(HASH)include <sys/ipc.h>@$(HASH)include <sys/shm.h>@int ma
|
|||||||
else
|
else
|
||||||
SHMAT_OK=0
|
SHMAT_OK=0
|
||||||
override CFLAGS+=-DUSEMMAP=1
|
override CFLAGS+=-DUSEMMAP=1
|
||||||
LDFLAGS += -Wno-deprecated-declarations -lrt
|
LDFLAGS += -Wno-deprecated-declarations
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef TEST_MMAP
|
ifdef TEST_MMAP
|
||||||
SHMAT_OK=0
|
SHMAT_OK=0
|
||||||
override CFLAGS += -DUSEMMAP=1
|
override CFLAGS += -DUSEMMAP=1
|
||||||
LDFLAGS += -Wno-deprecated-declarations -lrt
|
LDFLAGS += -Wno-deprecated-declarations
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all: test_x86 test_shm test_python ready $(PROGS) afl-as test_build all_done
|
all: test_x86 test_shm test_python ready $(PROGS) afl-as test_build all_done
|
||||||
|
@ -34,7 +34,9 @@
|
|||||||
#include <netinet/ip6.h>
|
#include <netinet/ip6.h>
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
#ifndef USEMMAP
|
||||||
#include <sys/shm.h>
|
#include <sys/shm.h>
|
||||||
|
#endif
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
Reference in New Issue
Block a user