aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/make-syscalls.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/make-syscalls.sh b/sysdeps/unix/make-syscalls.sh
index 0bedf7a432..61da42153e 100644
--- a/sysdeps/unix/make-syscalls.sh
+++ b/sysdeps/unix/make-syscalls.sh
@@ -193,8 +193,8 @@ shared-only-routines += $file
x-,-,* | x*,*.[sS],*V*) ;;
x*,-,*$ptrlet* | x*,*.[sS],*$ptrlet*)
- # find the name without leading underscores
- set `echo $strong $weak |tr -s ' \t' '\12' |sed '/^_/d'`
+ # choose the name with the fewest leading underscores, preferably none
+ set `echo $strong $weak |tr ' \t' '\n' |sort -r`
callname=$1
# convert signature string to individual numbered arg names