diff --git a/cmake/IntelDFP.cmake b/cmake/IntelDFP.cmake index e6478c1cb..d1e7c53be 100644 --- a/cmake/IntelDFP.cmake +++ b/cmake/IntelDFP.cmake @@ -41,6 +41,7 @@ FetchContent_Declare ( ${patch_command} -p 4 # Strip four path components "${PROJECT_SOURCE_DIR}/etc/mongo-inteldfp-s390x.patch" + "${PROJECT_SOURCE_DIR}/etc/mongo-inteldfp-MONGOCRYPT-571.patch" --verbose ) diff --git a/etc/mongo-inteldfp-MONGOCRYPT-571.patch b/etc/mongo-inteldfp-MONGOCRYPT-571.patch new file mode 100644 index 000000000..f1999b773 --- /dev/null +++ b/etc/mongo-inteldfp-MONGOCRYPT-571.patch @@ -0,0 +1,25 @@ +diff --git a/src/third-party/IntelRDFPMathLib20U2/LIBRARY/float128/dpml_exception.c b/src/third-party/IntelRDFPMathLib20U2/LIBRARY/float128/dpml_exception.c +index d061a4c..916b41d 100755 +--- a/src/third-party/IntelRDFPMathLib20U2/LIBRARY/float128/dpml_exception.c ++++ b/src/third-party/IntelRDFPMathLib20U2/LIBRARY/float128/dpml_exception.c +@@ -132,6 +132,7 @@ + !defined(wnt) + + # include ++# include + # define DPML_SIGNAL(p) raise(SIGFPE) + + #else +diff --git a/src/third-party/IntelRDFPMathLib20U2/LIBRARY/src/bid_internal.h b/src/third-party/IntelRDFPMathLib20U2/LIBRARY/src/bid_internal.h +index cd08ea7..1892637 100755 +--- a/src/third-party/IntelRDFPMathLib20U2/LIBRARY/src/bid_internal.h ++++ b/src/third-party/IntelRDFPMathLib20U2/LIBRARY/src/bid_internal.h +@@ -30,6 +30,8 @@ + #ifndef __BIDECIMAL_H + #define __BIDECIMAL_H + ++#include ++ + #define _CRT_SECURE_NO_DEPRECATE + #if defined(_MSC_VER) && !defined(__INTEL_COMPILER) + # pragma warning( disable: 4996 )