From 19a065f3fe3c7e87e23ab1ce3c7f0413072a3878 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Fri, 4 Dec 2020 11:25:52 +0000 Subject: [PATCH] Adding DragonFlyBSD support. --- configure.ac | 5 +++++ src/modsecurity.cc | 2 ++ 2 files changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index 33afa4c61..fb2676ece 100644 --- a/configure.ac +++ b/configure.ac @@ -187,6 +187,11 @@ case $host in AC_DEFINE([FREEBSD], [1], [Define if the operating system is FREEBSD]) PLATFORM="kFreeBSD" ;; + *-*-dragonfly*) + echo "Checking platform... Identified as DragonFlyBSD, treating as linux" + AC_DEFINE([DRAGONFLY], [1], [Define if the operating system is DRAGONFLY]) + PLATFORM="DragonFly" + ;; *-*-gnu*.*) echo "Checking platform... Identified as HURD, treating as linux" AC_DEFINE([LINUX], [1], [Define if the operating system is LINUX]) diff --git a/src/modsecurity.cc b/src/modsecurity.cc index 2dbf4513f..7ca596b7b 100644 --- a/src/modsecurity.cc +++ b/src/modsecurity.cc @@ -138,6 +138,8 @@ const std::string& ModSecurity::whoAmI() { platform = "MacOSX"; #elif FREEBSD platform = "FreeBSD"; +#elif DRAGONFLY + platform = "DragonFlyBSD"; #elif NETBSD platform = "NetBSD"; #elif WIN32