2012-03-01 Chris Demetriou <cgd@google.com>

* sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals
	* to
	have predictable order.
This commit is contained in:
Chris Demetriou 2012-03-02 09:32:45 +01:00 committed by Andreas Jaeger
parent 3c96908397
commit b1eeb65d49
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2012-03-01 Chris Demetriou <cgd@google.com>
* sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
have predictable order.
2012-03-01 David S. Miller <davem@davemloft.net>
* sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.

View File

@ -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;