Skip to content

Commit 560f812

Browse files
devnexenzimmerle
authored andcommitted
Adding DragonFlyBSD support.
1 parent afefda5 commit 560f812

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

configure.ac

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,11 @@ case $host in
187187
AC_DEFINE([FREEBSD], [1], [Define if the operating system is FREEBSD])
188188
PLATFORM="kFreeBSD"
189189
;;
190+
*-*-dragonfly*)
191+
echo "Checking platform... Identified as DragonFlyBSD, treating as linux"
192+
AC_DEFINE([DRAGONFLY], [1], [Define if the operating system is DRAGONFLY])
193+
PLATFORM="DragonFly"
194+
;;
190195
*-*-gnu*.*)
191196
echo "Checking platform... Identified as HURD, treating as linux"
192197
AC_DEFINE([LINUX], [1], [Define if the operating system is LINUX])

src/modsecurity.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ const std::string& ModSecurity::whoAmI() {
138138
platform = "MacOSX";
139139
#elif FREEBSD
140140
platform = "FreeBSD";
141+
#elif DRAGONFLY
142+
platform = "DragonFlyBSD";
141143
#elif NETBSD
142144
platform = "NetBSD";
143145
#elif WIN32

0 commit comments

Comments
 (0)