aboutsummaryrefslogtreecommitdiff
path: root/libgo/sysinfo.c
diff options
context:
space:
mode:
authorClément Chigot <chigot.c@gmail.com>2020-05-26 11:31:37 +0200
committerIan Lance Taylor <iant@golang.org>2020-09-22 17:29:52 -0700
commit63cd53d2f5da07856340bbea11ee09ab1125e8c0 (patch)
treefe31f55256655defed5054c94da8dc5ef81e9aa2 /libgo/sysinfo.c
parente41e66b78d4e0ba4f7e0b2423abf68d359a84fdd (diff)
downloadgcc-63cd53d2f5da07856340bbea11ee09ab1125e8c0.zip
gcc-63cd53d2f5da07856340bbea11ee09ab1125e8c0.tar.gz
gcc-63cd53d2f5da07856340bbea11ee09ab1125e8c0.tar.bz2
runtime, net: fix build errors on AIX
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/235158
Diffstat (limited to 'libgo/sysinfo.c')
-rw-r--r--libgo/sysinfo.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c
index 7640559..6ea990f 100644
--- a/libgo/sysinfo.c
+++ b/libgo/sysinfo.c
@@ -281,6 +281,14 @@ enum {
#endif
};
+// SIOCGIFMTU can't be added in the above enum as it might
+// be signed in some OSes.
+#ifdef SIOCGIFMTU
+enum {
+ SIOCGIFMTU_val = SIOCGIFMTU,
+};
+#endif
+
#if defined(HAVE_SYS_EPOLL_H)
enum {
epoll_data_offset = offsetof(struct epoll_event, data)