diff options
author | Chris Demetriou <cgd@google.com> | 2012-03-02 09:32:45 +0100 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2012-03-02 09:32:45 +0100 |
commit | b1eeb65d491c0fec94b29cfbbd2e384c9f3765cc (patch) | |
tree | 88fcc5e97b397b11063f9cb12064df62f246820f /sysdeps/gnu | |
parent | 3c96908397840a436666fc2d361747cc26f466c9 (diff) | |
download | glibc-b1eeb65d491c0fec94b29cfbbd2e384c9f3765cc.tar glibc-b1eeb65d491c0fec94b29cfbbd2e384c9f3765cc.tar.gz glibc-b1eeb65d491c0fec94b29cfbbd2e384c9f3765cc.tar.bz2 glibc-b1eeb65d491c0fec94b29cfbbd2e384c9f3765cc.zip |
2012-03-01 Chris Demetriou <cgd@google.com>
* sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals
* to
have predictable order.
Diffstat (limited to 'sysdeps/gnu')
-rw-r--r-- | sysdeps/gnu/errlist-compat.awk | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sysdeps/gnu/errlist-compat.awk b/sysdeps/gnu/errlist-compat.awk index 0e97d05d66..4f70e927c5 100644 --- a/sysdeps/gnu/errlist-compat.awk +++ b/sysdeps/gnu/errlist-compat.awk @@ -84,7 +84,10 @@ END { printf "#define ERR_MAX %d\n\n", highest; } - for (old in compat) { + # same regardless of awk's ordering of the associative array. + num_compat_elems = asorti(compat, compat_indices) + for (i = 1; i <= num_compat_elems; i++) { + old = compat_indices[i] new = compat[old]; n = vcount[old]; printf "#if SHLIB_COMPAT (libc, %s, %s)\n", old, new; |