[Bug go/78172] gen-sysinfo.go vs AIX cred.h

ian at airs dot com gcc-bugzilla@gcc.gnu.org
Wed Nov 2 17:19:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78172

--- Comment #7 from Ian Lance Taylor <ian at airs dot com> ---
Thanks.  Does a patch like this fix the immediate ucred problem?

diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
index 3640476..6c457b6 100755
--- a/libgo/mksysinfo.sh
+++ b/libgo/mksysinfo.sh
@@ -268,7 +268,7 @@ fi
 # is not empty, the structure or type is renamed to $2.
 upcase_fields () {
   name="$1"
-  def=`grep "^type $name" gen-sysinfo.go`
+  def=`grep "^type $name " gen-sysinfo.go`
   fields=`echo $def | sed -e 's/^[^{]*{\(.*\)}$/\1/'`
   prefix=`echo $def | sed -e 's/{.*//'`
   if test "$2" != ""; then


More information about the Gcc-bugs mailing list