]> granicus.if.org Git - pdns/commitdiff
Support building recursor on kFreeBSD and Hurd
authorChristian Hofstaedtler <christian@hofstaedtler.name>
Sun, 1 Jun 2014 15:24:19 +0000 (17:24 +0200)
committerChristian Hofstaedtler <christian@hofstaedtler.name>
Sun, 1 Jun 2014 15:26:26 +0000 (17:26 +0200)
pdns/Makefile-recursor
pdns/kqueuemplexer.cc

index 300ff71ee1b32a17fc421bb40fe57a856efcffc4..d00a817ecaa53e9d7d1f341fe39513c0d0736b75 100644 (file)
@@ -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)
index 6f89223389b1eb63936118c74aaa6c69c6d3ec45..c078457316c05415874c57d1564e2d3dded83291 100644 (file)
@@ -6,7 +6,7 @@
 #include <boost/lexical_cast.hpp>
 #include "syncres.hh"
 #include <sys/types.h>
-#ifdef __FreeBSD__ 
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
 #include <sys/event.h>
 #endif
 #include <sys/time.h>