aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ocaml-libvirt/0001-Use-C99-standard-int64_t-instead-of-OCaml-defined-an.patch
diff options
context:
space:
mode:
authorFernando Casas Schössow <casasfernando@outlook.com>2019-02-06 23:33:01 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2019-03-05 12:54:54 +0000
commit13eb3c75a32d19722717a47b6b3f1a413ba7a51e (patch)
treef9c92607d0b9cd46429fc231848f30ca4ac59cf5 /testing/ocaml-libvirt/0001-Use-C99-standard-int64_t-instead-of-OCaml-defined-an.patch
parent73847a9fc802eb60f79eef2a7c7096fc518ad1b4 (diff)
downloadaports-13eb3c75a32d19722717a47b6b3f1a413ba7a51e.tar.gz
aports-13eb3c75a32d19722717a47b6b3f1a413ba7a51e.tar.bz2
aports-13eb3c75a32d19722717a47b6b3f1a413ba7a51e.tar.xz
testing/ocaml-libvirt: new aport
http://libvirt.org/ocaml/ OCaml binding for libvirt
Diffstat (limited to 'testing/ocaml-libvirt/0001-Use-C99-standard-int64_t-instead-of-OCaml-defined-an.patch')
-rw-r--r--testing/ocaml-libvirt/0001-Use-C99-standard-int64_t-instead-of-OCaml-defined-an.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/ocaml-libvirt/0001-Use-C99-standard-int64_t-instead-of-OCaml-defined-an.patch b/testing/ocaml-libvirt/0001-Use-C99-standard-int64_t-instead-of-OCaml-defined-an.patch
new file mode 100644
index 0000000000..c00a75a103
--- /dev/null
+++ b/testing/ocaml-libvirt/0001-Use-C99-standard-int64_t-instead-of-OCaml-defined-an.patch
@@ -0,0 +1,35 @@
+From 21ac993da0a187821e812fe7b5b31a426121a546 Mon Sep 17 00:00:00 2001
+From: "Richard W.M. Jones" <rjones@redhat.com>
+Date: Sat, 30 Aug 2014 19:10:19 +0100
+Subject: [PATCH] Use C99 standard int64_t instead of OCaml defined (and soon
+ to go) int64.
+
+---
+ libvirt/libvirt_c_oneoffs.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/libvirt/libvirt_c_oneoffs.c b/libvirt/libvirt_c_oneoffs.c
+index 3bb572f..06b3852 100644
+--- a/libvirt/libvirt_c_oneoffs.c
++++ b/libvirt/libvirt_c_oneoffs.c
+@@ -140,7 +140,7 @@ ocaml_libvirt_connect_node_get_free_memory (value connv)
+ NONBLOCKING (r = virNodeGetFreeMemory (conn));
+ CHECK_ERROR (r == 0, conn, "virNodeGetFreeMemory");
+
+- rv = caml_copy_int64 ((int64) r);
++ rv = caml_copy_int64 ((int64_t) r);
+ CAMLreturn (rv);
+ }
+
+@@ -161,7 +161,7 @@ ocaml_libvirt_connect_node_get_cells_free_memory (value connv,
+
+ rv = caml_alloc (r, 0);
+ for (i = 0; i < r; ++i) {
+- iv = caml_copy_int64 ((int64) freemems[i]);
++ iv = caml_copy_int64 ((int64_t) freemems[i]);
+ Store_field (rv, i, iv);
+ }
+
+--
+2.0.4
+