aports/testing/ocaml-lwt/result_lseek_noinline.patch
Mike Sullivan 561ee68a37 testing/ocaml-lwt: avoid ocaml-lambda-term ppc64 build failure
...by inlining result_lseek functions.
2018-03-16 01:38:17 +01:00

21 lines
571 B
Diff

--- a/src/unix/unix_c/unix_lseek_job.c
+++ b/src/unix/unix_c/unix_lseek_job.c
@@ -92,7 +92,7 @@
}
/* The function building the caml result. */
-static value result_lseek(struct job_lseek* job)
+__attribute__((noinline)) static value result_lseek(struct job_lseek* job)
{
value result;
/* Check for errors. */
@@ -113,7 +113,7 @@
}
/* The function building the caml result. */
-static value result_lseek_64(struct job_lseek* job)
+__attribute__((noinline)) static value result_lseek_64(struct job_lseek* job)
{
value result;
/* Check for errors. */