From 4e0af5efd42edacda09f6569f063cbfb1fe56fe9 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Sun, 11 Nov 2018 18:49:55 +0000 Subject: [PATCH] DragonFlyBSD little build fix --- src/Makefile | 5 +++++ src/setproctitle.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 2d279775..0de0a1c6 100644 --- a/src/Makefile +++ b/src/Makefile @@ -106,6 +106,10 @@ else ifeq ($(uname_S),FreeBSD) # FreeBSD FINAL_LIBS+= -lpthread +else +ifeq ($(uname_S),DragonFly) + # FreeBSD + FINAL_LIBS+= -lpthread else # All the other OSes (notably Linux) FINAL_LDFLAGS+= -rdynamic @@ -115,6 +119,7 @@ endif endif endif endif +endif # Include paths to dependencies FINAL_CFLAGS+= -I../deps/hiredis -I../deps/linenoise -I../deps/lua/src diff --git a/src/setproctitle.c b/src/setproctitle.c index 6563242d..5f91d7bf 100644 --- a/src/setproctitle.c +++ b/src/setproctitle.c @@ -39,7 +39,7 @@ #include /* errno program_invocation_name program_invocation_short_name */ #if !defined(HAVE_SETPROCTITLE) -#if (defined __NetBSD__ || defined __FreeBSD__ || defined __OpenBSD__) +#if (defined __NetBSD__ || defined __FreeBSD__ || defined __OpenBSD__ || defined __DragonFly__) #define HAVE_SETPROCTITLE 1 #else #define HAVE_SETPROCTITLE 0