--- core/DesktopEditor/agg-2.4/include/agg_span_gradient.h.orig	2022-05-11 19:33:56 UTC
+++ core/DesktopEditor/agg-2.4/include/agg_span_gradient.h
@@ -28,7 +28,7 @@ namespace agg
 namespace agg
 {
     
-#if !defined(_LINUX) && !(defined(_WIN32) || defined (_WIN64)) && !defined(__APPLE__)
+#if !defined(_LINUX) && !defined(__FreeBSD__) && !(defined(_WIN32) || defined (_WIN64)) && !defined(__APPLE__)
     double _hypot(double x, double y)
     {
         return sqrt(x*x + y*y);
