Message ID | yddoaskjul6.fsf@lokon.CeBiTec.Uni-Bielefeld.DE |
---|---|
State | New |
Headers | show |
diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh --- a/libgo/mksysinfo.sh +++ b/libgo/mksysinfo.sh @@ -746,7 +746,9 @@ grep '^const _SCM_' gen-sysinfo.go | \ sed -e 's/^\(const \)_\(SCM_[^= ]*\)\(.*\)$/\1\2 = _\2/' >> ${OUT} # The ucred struct. -upcase_fields "_ucred" "Ucred" >> ${OUT} +if grep '^type _ucred ' gen-sysinfo.go > /dev/null; then + upcase_fields "_ucred" "Ucred" >> ${OUT} +fi # The ip_mreq struct. grep '^type _ip_mreq ' gen-sysinfo.go | \