diff options
author | Rich Felker <dalias@aerifal.cx> | 2020-08-30 21:30:37 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2020-08-30 21:30:37 -0400 |
commit | cf27184d00c1588eccac71a3bc89c9798e60bbd9 (patch) | |
tree | da4a97411eaf7a9f307fbf8aaab2ec0a959882ef /src/network/herror.c | |
parent | cab0a8fb8d9a1095de3e4c2227bfc37fae93f781 (diff) | |
download | musl-cf27184d00c1588eccac71a3bc89c9798e60bbd9.tar.gz musl-cf27184d00c1588eccac71a3bc89c9798e60bbd9.tar.bz2 musl-cf27184d00c1588eccac71a3bc89c9798e60bbd9.tar.xz musl-cf27184d00c1588eccac71a3bc89c9798e60bbd9.zip |
restore h_errno ABI compatibility with ancient binaries
prior to commit e68c51ac46a9f273927aef8dcebc89912ab19ece, h_errno was
actually an external data object not a macro. bring back the symbol,
and use it as the storage for the main thread's h_errno.
technically this still doesn't provide full compatibility if the
application was multithreaded, but at the time there were no res_*
functions (and they did not set h_errno anyway), so any use of h_errno
would have been via thread-unsafe functions. thus a solution that just
fixes single-threaded applications seems acceptable.
Diffstat (limited to 'src/network/herror.c')
0 files changed, 0 insertions, 0 deletions