From f736d78ec228bb4560d03e8000cbf5bb03e2542c Mon Sep 17 00:00:00 2001 From: Charlie Root Date: Sat, 23 Jun 2018 07:51:36 +0000 Subject: [PATCH] add freebsd target --- common.h | 1 + makefile | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/common.h b/common.h index 5ca5916..31ff2a1 100644 --- a/common.h +++ b/common.h @@ -43,6 +43,7 @@ typedef int socklen_t; #include #include #include +#include #endif diff --git a/makefile b/makefile index d865ac1..b506b46 100755 --- a/makefile +++ b/makefile @@ -19,6 +19,10 @@ all:git_version rm -f ${NAME} ${cc_local} -o ${NAME} -I. ${SOURCES} ${FLAGS} -lrt -ggdb -static -O3 +freebsd:git_version + rm -f ${NAME} + ${cc_local} -o ${NAME} -I. ${SOURCES} ${FLAGS} -lrt -ggdb -static -O3 + cygwin:git_version rm -f ${NAME} ${cc_local} -o ${NAME} -I. ${SOURCES} ${FLAGS} -lrt -ggdb -static -O3 -D_GNU_SOURCE