aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ocaml-lwt/result_lseek_noinline.patch
diff options
context:
space:
mode:
authorMike Sullivan <mksully22@gmail.com>2018-03-14 17:17:23 +0000
committerJakub Jirutka <jakub@jirutka.cz>2018-03-16 01:38:17 +0100
commit561ee68a37add471ba206c25a29197498802cbed (patch)
tree7fea3633b3aa4fcb2ac460ba3c908dafd46c1530 /testing/ocaml-lwt/result_lseek_noinline.patch
parent6497dce3d3c66b9b36c702890340e8d8da271b8d (diff)
downloadaports-561ee68a37add471ba206c25a29197498802cbed.tar.bz2
aports-561ee68a37add471ba206c25a29197498802cbed.tar.xz
testing/ocaml-lwt: avoid ocaml-lambda-term ppc64 build failure
...by inlining result_lseek functions.
Diffstat (limited to 'testing/ocaml-lwt/result_lseek_noinline.patch')
-rw-r--r--testing/ocaml-lwt/result_lseek_noinline.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/ocaml-lwt/result_lseek_noinline.patch b/testing/ocaml-lwt/result_lseek_noinline.patch
new file mode 100644
index 0000000000..2e2fd1552d
--- /dev/null
+++ b/testing/ocaml-lwt/result_lseek_noinline.patch
@@ -0,0 +1,20 @@
+--- 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. */