From 984d747cfff5b6b21d64bf02c1ced8f6eb558f83 Mon Sep 17 00:00:00 2001 From: Christian Hofstaedtler Date: Sun, 1 Jun 2014 17:24:19 +0200 Subject: [PATCH] Support building recursor on kFreeBSD and Hurd --- pdns/Makefile-recursor | 6 ++++++ pdns/kqueuemplexer.cc | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pdns/Makefile-recursor b/pdns/Makefile-recursor index 300ff71ee..d00a817ec 100644 --- a/pdns/Makefile-recursor +++ b/pdns/Makefile-recursor @@ -33,6 +33,12 @@ all: message version_generated.h build # OS specific instructions -include sysdeps/$(shell uname).inc +ifeq ($(shell uname),GNU/kFreeBSD) + -include sysdeps/FreeBSD.inc +endif +ifeq ($(shell uname),GNU/Hurd) + -include sysdeps/Linux.inc +endif ifeq ($(LUA), 1) LUALIBS=$(LUA_LIBS_CONFIG) diff --git a/pdns/kqueuemplexer.cc b/pdns/kqueuemplexer.cc index 6f8922338..c07845731 100644 --- a/pdns/kqueuemplexer.cc +++ b/pdns/kqueuemplexer.cc @@ -6,7 +6,7 @@ #include #include "syncres.hh" #include -#ifdef __FreeBSD__ +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) #include #endif #include -- 2.40.0