Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 1 | From ef5a8b9eda402e4e96c4e3ce01e7ff95d3e10470 Mon Sep 17 00:00:00 2001 |
| 2 | From: Du Zhe <duzhe0211+sourceware@gmail.com> |
| 3 | Date: Tue, 13 Jul 2021 19:11:55 -0400 |
| 4 | Subject: [PATCH] runtime: fix unintended compile error with |
| 5 | autoconf-x86-uniregs.c |
| 6 | |
| 7 | Adding a #include <linux/sched.h> restores this test on the gentoo |
| 8 | linux-5.10.47-gentoo kernel. |
| 9 | |
| 10 | Upstream-Status: Backport |
| 11 | --- |
| 12 | runtime/linux/autoconf-x86-uniregs.c | 1 + |
| 13 | 1 file changed, 1 insertion(+) |
| 14 | |
| 15 | diff --git a/runtime/linux/autoconf-x86-uniregs.c b/runtime/linux/autoconf-x86-uniregs.c |
| 16 | index 25729c220..232c18670 100644 |
| 17 | --- a/runtime/linux/autoconf-x86-uniregs.c |
| 18 | +++ b/runtime/linux/autoconf-x86-uniregs.c |
| 19 | @@ -1,3 +1,4 @@ |
| 20 | +#include <linux/sched.h> |
| 21 | #include <asm/ptrace.h> |
| 22 | |
| 23 | #if defined (__i386__) || defined (__x86_64__) |
| 24 | -- |
| 25 | 2.27.0 |
| 26 | |