public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-1686] libgo: don't include <linux/fs.h> when building gen-sysinfo.go
@ 2022-07-13 16:02 Ian Lance Taylor
  0 siblings, 0 replies; only message in thread
From: Ian Lance Taylor @ 2022-07-13 16:02 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:f35d65517a59565758107c5b1a51a5fa382f8d1a

commit r13-1686-gf35d65517a59565758107c5b1a51a5fa382f8d1a
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

Diff:
---
 gcc/go/gofrontend/MERGE | 2 +-
 libgo/sysinfo.c         | 3 ---
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE
index 7c5c45672d7..5ea0406cd8e 100644
--- a/gcc/go/gofrontend/MERGE
+++ b/gcc/go/gofrontend/MERGE
@@ -1,4 +1,4 @@
-d295a0a2c96c0f7c3abd94fea3aa4e2303bf2af2
+ff68b1a147eb60082fd60c198db0ef5477ade938
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c
index a4259c02ded..fc0210992fa 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-13 16:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-13 16:02 [gcc r13-1686] libgo: don't include <linux/fs.h> when building gen-sysinfo.go Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).