--- CMakeLists.txt.intermediate	2015-06-06 13:17:20 UTC
+++ CMakeLists.txt
@@ -322,6 +322,10 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "BSD")
 		set(FREEBSD TRUE)
 	endif()
 endif()
+if(${CMAKE_SYSTEM_NAME} MATCHES "DragonFly")
+	set(BSD TRUE)
+	set(FREEBSD TRUE)
+endif()
 
 # Android
 if(ANDROID)
