From: Bruce Momjian Date: Fri, 12 Jun 2009 03:09:07 +0000 (+0000) Subject: Tighten typedef check for Linux. X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=f762c4d29e74c7819cd591b30334b87154c74852;p=users%2Fsimon%2Fpostgres.git Tighten typedef check for Linux. --- diff --git a/src/tools/find_typedef b/src/tools/find_typedef index 9f8e238177..4811673aba 100755 --- a/src/tools/find_typedef +++ b/src/tools/find_typedef @@ -45,7 +45,7 @@ do # if objdump -W is recognized, only one line of error should appear # the typedef references, not the definitions, so I think it might # be fine objdump -W "$DIR"/* | - egrep -A3 'DW_TAG_typedef' | + egrep -A3 '\(DW_TAG_typedef\)' | awk ' $2 == "DW_AT_name" {print $NF}' elif [ `readelf -w 2>&1 | wc -l` -gt 1 ] then # FreeBSD, similar output to Linux