slackware-current/source/d/gcc/patches/f35d65517a59565758107c5b1a51a5fa382f8d1a.diff
Patrick J Volkerding ca27dc818b Thu Aug 4 19:41:01 UTC 2022
a/kernel-firmware-20220804_e6185d5-noarch-1.txz:  Upgraded.
a/util-linux-2.38.1-x86_64-1.txz:  Upgraded.
ap/mpg123-1.30.2-x86_64-1.txz:  Upgraded.
n/NetworkManager-1.38.2-x86_64-1.txz:  Upgraded.
xap/libnma-1.8.40-x86_64-1.txz:  Upgraded.
xap/network-manager-applet-1.28.0-x86_64-1.txz:  Upgraded.
extra/php81/php81-8.1.9-x86_64-1.txz:  Upgraded.
2022-08-05 06:59:44 +02:00

46 lines
1.3 KiB
Diff

From f35d65517a59565758107c5b1a51a5fa382f8d1a Mon Sep 17 00:00:00 2001
From: Ian Lance Taylor <iant@golang.org>
Date: Tue, 12 Jul 2022 19:42:43 -0700
Subject: [PATCH] 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
---
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 @@
-70ca85f08edf63f46c87d540fa99c45e2903edc2
+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
--
2.31.1