[gcc r11-10158] libgo: don't include <linux/fs.h> when building gen-sysinfo.go
Martin Liska
marxin@gcc.gnu.org
Thu Jul 21 11:59:23 GMT 2022
https://gcc.gnu.org/g:a55184ada8e2887ca94c0ab07027617885beafc9
commit r11-10158-ga55184ada8e2887ca94c0ab07027617885beafc9
Author: Ian Lance Taylor <iant@golang.org>
Date: Tue Jul 12 19:42:43 2022 -0700
libgo: don't include <linux/fs.h> when building gen-sysinfo.go
Removing this doesn't change anything at least with glibc 2.33.
The include was added in https://go.dev/cl/6100049 but it's not
clear why.
Fixes PR go/106266
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/417294
(cherry picked from commit f35d65517a59565758107c5b1a51a5fa382f8d1a)
Diff:
---
libgo/sysinfo.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c
index 8ce061e2f5f..336a5983750 100644
--- a/libgo/sysinfo.c
+++ b/libgo/sysinfo.c
@@ -158,9 +158,6 @@
#if defined(HAVE_LINUX_ETHER_H)
#include <linux/ether.h>
#endif
-#if defined(HAVE_LINUX_FS_H)
-#include <linux/fs.h>
-#endif
#if defined(HAVE_LINUX_REBOOT_H)
#include <linux/reboot.h>
#endif
More information about the Gcc-cvs
mailing list