···12121313 nativeBuildInputs = [ m4 ];
14141515+ patches = if stdenv.isDarwin then [ ./need-size-t.patch ] else null;
1616+1517 configureFlags =
1618 # Build a "fat binary", with routines for several sub-architectures
1719 # (x86), except on Solaris where some tests crash with "Memory fault".
+18
pkgs/development/libraries/gmp/need-size-t.patch
···11+diff --git a/gmp-h.in b/gmp-h.in
22+index 7deb67a..240d663 100644
33+--- a/gmp-h.in
44++++ b/gmp-h.in
55+@@ -46,13 +46,11 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
66+ #ifndef __GNU_MP__
77+ #define __GNU_MP__ 5
88+99+-#define __need_size_t /* tell gcc stddef.h we only want size_t */
1010+ #if defined (__cplusplus)
1111+ #include <cstddef> /* for size_t */
1212+ #else
1313+ #include <stddef.h> /* for size_t */
1414+ #endif
1515+-#undef __need_size_t
1616+1717+ /* Instantiated by configure. */
1818+ #if ! defined (__GMP_WITHIN_CONFIGURE)