aboutsummaryrefslogtreecommitdiff
path: root/libgo/sysinfo.c
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2020-11-29 10:16:27 -0800
committerIan Lance Taylor <iant@golang.org>2020-11-30 12:17:01 -0800
commite848a83f46f15280ad654f05545cc5ec4f5b8e50 (patch)
tree0cf7f90e869839c7c62dbef720c4ecfde8a944b9 /libgo/sysinfo.c
parent5ba975e6680cc5f9c2be7ee34b1cacdba3eb3347 (diff)
downloadgcc-e848a83f46f15280ad654f05545cc5ec4f5b8e50.zip
gcc-e848a83f46f15280ad654f05545cc5ec4f5b8e50.tar.gz
gcc-e848a83f46f15280ad654f05545cc5ec4f5b8e50.tar.bz2
libgo: define SO_RCVTIMEO on 32-bit GNU/Linux
Fixes golang/go#42872 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/273892
Diffstat (limited to 'libgo/sysinfo.c')
-rw-r--r--libgo/sysinfo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c
index 7086381..a060ea8 100644
--- a/libgo/sysinfo.c
+++ b/libgo/sysinfo.c
@@ -337,6 +337,9 @@ enum {
#ifdef BIOCVERSION
BIOCVERSION_val = BIOCVERSION,
#endif
+#ifdef SO_RCVTIMEO
+ SO_RCVTIMEO_val = SO_RCVTIMEO,
+#endif
};
// SIOCGIFMTU can't be added in the above enum as it might