aboutsummaryrefslogtreecommitdiff
path: root/archivers/openzl/files/patch-src_openzl_shared_portability.h
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/openzl/files/patch-src_openzl_shared_portability.h')
-rw-r--r--archivers/openzl/files/patch-src_openzl_shared_portability.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/archivers/openzl/files/patch-src_openzl_shared_portability.h b/archivers/openzl/files/patch-src_openzl_shared_portability.h
new file mode 100644
index 000000000000..d15f9c837dde
--- /dev/null
+++ b/archivers/openzl/files/patch-src_openzl_shared_portability.h
@@ -0,0 +1,15 @@
+--- src/openzl/shared/portability.h.orig 2025-10-08 09:01:34 UTC
++++ src/openzl/shared/portability.h
+@@ -211,10 +211,11 @@ ZL_BEGIN_C_DECLS
+ // Detect IEEE 754 floating point support.
+ // Apple doesn't define __STDC_IEC_559__, but supports IEEE 754.
+ // MinGW doesn't define __STDC_IEC_559__, but supports IEEE 754.
++// FreeBSD doesn't define __STDC_IEC_559__, but supports IEEE 754.
+ #if (defined(__STDC_IEC_559__) && __STDC_IEC_559__) \
+ || (defined(__STDC_IEC_60559_BFP__) \
+ && __STDC_IEC_60559_BFP__ >= 202311L) \
+- || defined(__APPLE__) || defined(__MINGW32__)
++ || defined(__APPLE__) || defined(__MINGW32__) || defined(__FreeBSD__)
+ # define ZL_HAS_IEEE_754 1
+ #else
+ # define ZL_HAS_IEEE_754 0