diff --git a/src/common/rendering/gl_load/gl_system.h b/src/common/rendering/gl_load/gl_system.h index 0ad2f3303..6b40d73c0 100644 --- a/src/common/rendering/gl_load/gl_system.h +++ b/src/common/rendering/gl_load/gl_system.h @@ -14,7 +14,7 @@ #include #include #include -#if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__OpenBSD__) +#if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__DragonFly__) #include #endif #include diff --git a/src/common/rendering/vulkan/thirdparty/vk_mem_alloc/vk_mem_alloc.h b/src/common/rendering/vulkan/thirdparty/vk_mem_alloc/vk_mem_alloc.h index 53ce163bf..30f2494a7 100644 --- a/src/common/rendering/vulkan/thirdparty/vk_mem_alloc/vk_mem_alloc.h +++ b/src/common/rendering/vulkan/thirdparty/vk_mem_alloc/vk_mem_alloc.h @@ -2229,7 +2229,7 @@ remove them if not needed. #include // for std::mutex #include // for std::atomic -#if !defined(_WIN32) && !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__OpenBSD__) +#if !defined(_WIN32) && !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__DragonFly__) #include // for aligned_alloc() #endif diff --git a/src/common/utility/m_alloc.cpp b/src/common/utility/m_alloc.cpp index d1f34c324..8ab7b6fcc 100644 --- a/src/common/utility/m_alloc.cpp +++ b/src/common/utility/m_alloc.cpp @@ -38,7 +38,7 @@ #elif defined(__APPLE__) #include #include -#elif defined(__OpenBSD__) +#elif defined(__OpenBSD__) || defined(__DragonFly__) #include #else #include diff --git a/src/common/utility/m_alloc.h b/src/common/utility/m_alloc.h index 76c4947bc..14e9cbb9a 100644 --- a/src/common/utility/m_alloc.h +++ b/src/common/utility/m_alloc.h @@ -40,7 +40,7 @@ #if defined(__APPLE__) #include #define _msize(p) malloc_size(p) -#elif defined(__solaris__) || defined(__OpenBSD__) +#elif defined(__solaris__) || defined(__OpenBSD__) || defined(__DragonFly__) #define _msize(p) (*((size_t*)(p)-1)) #elif !defined(_WIN32) #include