summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-02-24 15:26:30 (GMT)
committerGuido van Rossum <guido@python.org>2000-02-24 15:26:30 (GMT)
commite7ef74dbf89499127680785bbbdf8b3b4029cf63 (patch)
treeeb20ecbf0ef79141472019020a6755a4d5274ea1 /Modules
parent4aa24f997940fae3ac718d034014ad0f987101c0 (diff)
downloadcpython-e7ef74dbf89499127680785bbbdf8b3b4029cf63.zip
cpython-e7ef74dbf89499127680785bbbdf8b3b4029cf63.tar.gz
cpython-e7ef74dbf89499127680785bbbdf8b3b4029cf63.tar.bz2
Peter Funk:
This patch allows building the Python 'mpzmodule' under SuSE Linux without having to install the source package of the GMP-libary. The gmp-mparam.h seems to be an internal header file. The patch shouldn't hurt any other platforms.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/mpzmodule.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/mpzmodule.c b/Modules/mpzmodule.c
index 7ae6937..2653a95 100644
--- a/Modules/mpzmodule.c
+++ b/Modules/mpzmodule.c
@@ -92,7 +92,12 @@ PERFORMANCE OF THIS SOFTWARE.
*/
#include "gmp.h"
+
+#if defined __GLIBC__ && __GLIBC__ >= 2 /*aid building on Linux distributions*/
+#define BITS_PER_MP_LIMB mp_bits_per_limb
+#else
#include "gmp-mparam.h"
+#endif
#if __GNU_MP__ + 0 == 2
#define GMP2