commit 385fcce5ec29ed9dd78f2b108b9f4b663c6c46d9
Author: Frank Ch. Eigler <fche@redhat.com>
Date: Wed Oct 2 10:50:15 2019 -0400
rhbz1741831: support arm64 with linux/sched.h include order
On some arm64 kernels, <linux/sched.h> needs to be #include'd
ahead of <asm/*> bits in our autoconf-* tests, or else things
break. New variant tested on these kernels plus x86-64 f30.
diff --git a/runtime/linux/autoconf-asm-syscall.c b/runtime/linux/autoconf-asm-syscall.c
index bf7a273..44616c3 100644
--- a/runtime/linux/autoconf-asm-syscall.c
+++ b/runtime/linux/autoconf-asm-syscall.c
@@ -1,2 +1,3 @@
+#include <linux/sched.h>
#include <asm/syscall.h>
diff --git a/runtime/linux/autoconf-syscall_get_args_3args.c b/runtime/linux/autoconf-syscall_get_args_3args.c
index 6aeb7b1..c08faa9 100644
--- a/runtime/linux/autoconf-syscall_get_args_3args.c
+++ b/runtime/linux/autoconf-syscall_get_args_3args.c
@@ -1,3 +1,4 @@
+#include <linux/sched.h>
#include <asm/syscall.h>
#include <asm/ptrace.h>
#include <linux/sched.h>