mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-18 12:48:06 +00:00
afl-fuzz-redqueen.c fix build, also forgotten math lib for ilog* calls
This commit is contained in:
@ -255,17 +255,17 @@ endif
|
|||||||
|
|
||||||
ifneq "$(findstring FreeBSD, $(SYS))" ""
|
ifneq "$(findstring FreeBSD, $(SYS))" ""
|
||||||
override CFLAGS += -pthread
|
override CFLAGS += -pthread
|
||||||
override LDFLAGS += -lpthread
|
override LDFLAGS += -lpthread -lm
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq "$(findstring NetBSD, $(SYS))" ""
|
ifneq "$(findstring NetBSD, $(SYS))" ""
|
||||||
override CFLAGS += -pthread
|
override CFLAGS += -pthread
|
||||||
override LDFLAGS += -lpthread
|
override LDFLAGS += -lpthread -lm
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq "$(findstring OpenBSD, $(SYS))" ""
|
ifneq "$(findstring OpenBSD, $(SYS))" ""
|
||||||
override CFLAGS += -pthread
|
override CFLAGS += -pthread
|
||||||
override LDFLAGS += -lpthread
|
override LDFLAGS += -lpthread -lm
|
||||||
endif
|
endif
|
||||||
|
|
||||||
COMM_HDR = include/alloc-inl.h include/config.h include/debug.h include/types.h
|
COMM_HDR = include/alloc-inl.h include/config.h include/debug.h include/types.h
|
||||||
|
@ -2525,6 +2525,7 @@ static u8 rtn_fuzz(afl_state_t *afl, u32 key, u8 *orig_buf, u8 *buf, u8 *cbuf,
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
|
u32 j;
|
||||||
struct cmp_header *hh = &afl->orig_cmp_map->headers[key];
|
struct cmp_header *hh = &afl->orig_cmp_map->headers[key];
|
||||||
fprintf(stderr, "RTN N hits=%u id=%u shape=%u attr=%u v0=", h->hits, h->id,
|
fprintf(stderr, "RTN N hits=%u id=%u shape=%u attr=%u v0=", h->hits, h->id,
|
||||||
hshape, h->attribute);
|
hshape, h->attribute);
|
||||||
|
Reference in New Issue
Block a user