Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame^] | 1 | From 0503ec88e9187c0152b7b2840a1ad5bfb022bbfe Mon Sep 17 00:00:00 2001 |
| 2 | From: Colin Ian King <colin.i.king@gmail.com> |
| 3 | Date: Mon, 1 Aug 2022 21:28:49 +0100 |
| 4 | Subject: [PATCH 2/2] core-shim: remove include of sys/mount.h |
| 5 | |
| 6 | This is not required in the shim core and it fixes a build issue |
| 7 | with newer glibc 2.36 |
| 8 | |
| 9 | Fixes: https://github.com/ColinIanKing/stress-ng/issues/216 |
| 10 | |
| 11 | Upstream-Status: Backport [https://github.com/ColinIanKing/stress-ng/commit/0c9a711f213b5734729ab0c5ed90669e9fd11ca2] |
| 12 | Signed-off-by: Colin Ian King <colin.i.king@gmail.com> |
| 13 | --- |
| 14 | core-shim.c | 4 ---- |
| 15 | 1 file changed, 4 deletions(-) |
| 16 | |
| 17 | diff --git a/core-shim.c b/core-shim.c |
| 18 | index 0343402a..324eba7d 100644 |
| 19 | --- a/core-shim.c |
| 20 | +++ b/core-shim.c |
| 21 | @@ -52,10 +52,6 @@ |
| 22 | #include <asm/ldt.h> |
| 23 | #endif |
| 24 | |
| 25 | -#if defined(HAVE_SYS_MOUNT_H) |
| 26 | -#include <sys/mount.h> |
| 27 | -#endif |
| 28 | - |
| 29 | #if defined(HAVE_SYS_PRCTL_H) |
| 30 | #include <sys/prctl.h> |
| 31 | #endif |
| 32 | -- |
| 33 | 2.37.1 |
| 34 | |