aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2016-10-18 03:09:59 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-10-18 04:13:05 +0200
commit12ff33c3fbf1dfc2dce60f6a75bb546ca3bf6735 (patch)
tree8ca1a0c942a613659593ba57fe69d2dce370e9f9 /URPM.xs
parentdb118471a871d0ca2af9b178b2f6e910e30fb0a6 (diff)
downloadperl-URPM-12ff33c3fbf1dfc2dce60f6a75bb546ca3bf6735.tar
perl-URPM-12ff33c3fbf1dfc2dce60f6a75bb546ca3bf6735.tar.gz
perl-URPM-12ff33c3fbf1dfc2dce60f6a75bb546ca3bf6735.tar.bz2
perl-URPM-12ff33c3fbf1dfc2dce60f6a75bb546ca3bf6735.tar.xz
perl-URPM-12ff33c3fbf1dfc2dce60f6a75bb546ca3bf6735.zip
add support for int64, using Math::Int64 C API
previously it was missing on 32bit arches
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs5
1 files changed, 5 insertions, 0 deletions
diff --git a/URPM.xs b/URPM.xs
index 5e23ba6..8602dc9 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -12,6 +12,10 @@
#include "perl.h"
#include "XSUB.h"
+#include <inttypes.h>
+#define MATH_INT64_NATIVE_IF_AVAILABLE
+#include "perl_math_int64.h"
+
#include <sys/utsname.h>
#include <sys/select.h>
#include <sys/time.h>
@@ -2755,6 +2759,7 @@ MODULE = URPM PACKAGE = URPM PREFIX = Urpm_
BOOT:
(void) read_config_files(0);
+ PERL_MATH_INT64_LOAD_OR_CROAK;
void
Urpm_bind_rpm_textdomain_codeset()