Skip to content

Commit

Permalink
syscall: Fix to libgo/mksysinfo.sh
Browse files Browse the repository at this point in the history
In a recent change to mksysinfo.sh, a space was missing on
some lines which caused the libgo build to hang on some
systems.  This corrects that problem.

Fixes golang/go#11924

Change-Id: I36ea2a2daaf25c5210c394daae7f2e6888e983e5
Reviewed-on: https://go-review.googlesource.com/12835
Reviewed-by: Ian Lance Taylor <iant@golang.org>
  • Loading branch information
laboger authored and ianlancetaylor committed Jul 29, 2015
1 parent 3aa95d9 commit 9931f2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libgo/mksysinfo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1026,19 +1026,19 @@ if ! grep '^const TUNDETACHFILTER' ${OUT} >/dev/null 2>&1; then
fi
fi

if ! grep '^const TUNGETVNETHDRSZ'${OUT} >/dev/null 2>&1; then
if ! grep '^const TUNGETVNETHDRSZ' ${OUT} >/dev/null 2>&1; then
if grep '^const _TUNGETVNETHDRSZ_val' ${OUT} >/dev/null 2>&1; then
echo 'const TUNGETVNETHDRSZ = _TUNGETVNETHDRSZ_val' >> ${OUT}
fi
fi

if ! grep '^const TUNSETVNETHDRSZ'${OUT} >/dev/null 2>&1; then
if ! grep '^const TUNSETVNETHDRSZ' ${OUT} >/dev/null 2>&1; then
if grep '^const _TUNSETVNETHDRSZ_val' ${OUT} >/dev/null 2>&1; then
echo 'const TUNSETVNETHDRSZ = _TUNSETVNETHDRSZ_val' >> ${OUT}
fi
fi

if ! grep '^const TUNSETQUEUE'${OUT} >/dev/null 2>&1; then
if ! grep '^const TUNSETQUEUE' ${OUT} >/dev/null 2>&1; then
if grep '^const _TUNSETQUEUE_val' ${OUT} >/dev/null 2>&1; then
echo 'const TUNSETQUEUE = _TUNSETQUEUE_val' >> ${OUT}
fi
Expand Down

0 comments on commit 9931f2c

Please sign in to comment.