aboutsummaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2022-07-12 19:42:43 -0700
committerIan Lance Taylor <iant@golang.org>2022-07-13 09:02:20 -0700
commitf35d65517a59565758107c5b1a51a5fa382f8d1a (patch)
tree87c5f4d7f3fad178574c763f889c532a0da098c0 /libgo
parent1184f677d6e17033572ecc5e97ea5ee627627908 (diff)
downloadgcc-f35d65517a59565758107c5b1a51a5fa382f8d1a.zip
gcc-f35d65517a59565758107c5b1a51a5fa382f8d1a.tar.gz
gcc-f35d65517a59565758107c5b1a51a5fa382f8d1a.tar.bz2
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
Diffstat (limited to 'libgo')
-rw-r--r--libgo/sysinfo.c3
1 files changed, 0 insertions, 3 deletions
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