]> gcc.gnu.org Git - gcc.git/commitdiff
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:53:37 +0000 (13:53 +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 8ce061e2f5fdeb7389dcaf3dc0047c905d8434cf..336a5983750a43d2151b6d4907c78537bf36abfa 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
This page took 0.060598 seconds and 5 git commands to generate.