From: Christian Hofstaedtler Date: Sun, 1 Jun 2014 15:24:19 +0000 (+0200) Subject: Support building recursor on kFreeBSD and Hurd X-Git-Tag: rec-3.6.0~19^2~14^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1445%2Fhead;p=thirdparty%2Fpdns.git Support building recursor on kFreeBSD and Hurd --- diff --git a/pdns/Makefile-recursor b/pdns/Makefile-recursor index 300ff71ee1..d00a817eca 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 6f89223389..c078457316 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