libgo: don't include <linux/fs.h> when building gen-sysinfo.go
authorIan Lance Taylor <iant@golang.org>
Wed, 13 Jul 2022 02:42:43 +0000 (19:42 -0700)
committerMartin Liska <mliska@suse.cz>
Thu, 21 Jul 2022 11:39:43 +0000 (13:39 +0200)
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)

libgo/sysinfo.c

index 8ce061e..336a598 100644 (file)
 #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