mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-12 10:08:07 +00:00
build fixes for FreeBSD 11
This commit is contained in:
1
Makefile
1
Makefile
@ -109,6 +109,7 @@ endif
|
|||||||
|
|
||||||
ifneq "$(findstring FreeBSD, $(shell uname))" ""
|
ifneq "$(findstring FreeBSD, $(shell uname))" ""
|
||||||
CFLAGS += -pthread
|
CFLAGS += -pthread
|
||||||
|
LDFLAGS += -lpthread
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq "$(findstring NetBSD, $(shell uname))" ""
|
ifneq "$(findstring NetBSD, $(shell uname))" ""
|
||||||
|
@ -64,7 +64,7 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
|
|
||||||
#if __STDC_VERSION__ < 201112L
|
#if __STDC_VERSION__ < 201112L || defined __FreeBSD__
|
||||||
// use this hack if not C11
|
// use this hack if not C11
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user