diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
index 2d3aa8f620550e84cce2638569cca7b9d436d555..a8c70f07c6f13b88a6f8f417f305763404fe6ff9 100755
--- a/libgo/mksysinfo.sh
+++ b/libgo/mksysinfo.sh
@@ -538,7 +538,7 @@ grep '^const _TIOC' gen-sysinfo.go | \
 # We need TIOCGWINSZ.
 if ! grep '^const TIOCGWINSZ' ${OUT} >/dev/null 2>&1; then
   if grep '^const _TIOCGWINSZ_val' ${OUT} >/dev/null 2>&1; then
-    echo 'const TIOCGWINSZ = TIOCGWINSZ_val' >> ${OUT}
+    echo 'const TIOCGWINSZ = _TIOCGWINSZ_val' >> ${OUT}
   fi
 fi