summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/fontconfig/src/makealias2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fontconfig/src/makealias b/lib/fontconfig/src/makealias
index 02167b25b..711d30c91 100644
--- a/lib/fontconfig/src/makealias
+++ b/lib/fontconfig/src/makealias
@@ -15,7 +15,7 @@ while read name; do
hattr='__attribute((visibility("hidden")))'
echo "extern __typeof ($name) $alias $hattr;" >> $HEAD
echo "#define $name $alias" >> $HEAD
- grep -l -w '^'$name "$SRCDIR"/*.c | sed -e 's/^.*\/\([^.]*\)\.c/#ifdef __\1__/' >> $TAIL
+ egrep -l '^'$name'[[:>:]]' "$SRCDIR"/*.c | head -1 | sed -e 's/^.*\/\([^.]*\)\.c/#ifdef __\1__/' >> $TAIL
echo "#undef $name" >> $TAIL
cattr='__attribute((alias("'$alias'"), visibility("default")))'
echo "extern __typeof ($name) $name $cattr;" >> $TAIL