commit | ff68b1a147eb60082fd60c198db0ef5477ade938 | [log] [tgz] |
---|---|---|
author | Ian Lance Taylor <iant@golang.org> | Tue Jul 12 19:42:43 2022 -0700 |
committer | Ian Lance Taylor <iant@golang.org> | Wed Jul 13 16:00:59 2022 +0000 |
tree | c8ef7030125f2c32a162f79bec331fa937fc2087 | |
parent | d295a0a2c96c0f7c3abd94fea3aa4e2303bf2af2 [diff] |
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 https://gcc.gnu.org/PR106266 Change-Id: I394ac26344369a9713c541a6468cefa31f60a79e Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/417294 Reviewed-by: Cherry Mui <cherryyz@google.com> Reviewed-by: Than McIntosh <thanm@google.com>
diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c index a4259c0..fc02109 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