Adding DragonFlyBSD support.

This commit is contained in:
David Carlier 2020-12-04 11:25:52 +00:00 committed by Felipe Zimmerle
parent afefda53c6
commit 560f81200f
2 changed files with 7 additions and 0 deletions

View File

@ -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])

View File

@ -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