build fixes for FreeBSD 11

This commit is contained in:
hexcoder- 2020-02-08 17:23:45 +01:00
parent ce49ba428b
commit b6209b3732
2 changed files with 2 additions and 1 deletions

View File

@ -109,6 +109,7 @@ endif
ifneq "$(findstring FreeBSD, $(shell uname))" ""
CFLAGS += -pthread
LDFLAGS += -lpthread
endif
ifneq "$(findstring NetBSD, $(shell uname))" ""

View File

@ -64,7 +64,7 @@
#include "config.h"
#include "types.h"
#if __STDC_VERSION__ < 201112L
#if __STDC_VERSION__ < 201112L || defined __FreeBSD__
// use this hack if not C11
typedef struct {