mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01:00
change errno to static linkage (improves PIC code generation)
This commit is contained in:
parent
8cd48f0965
commit
71e6be641f
1 changed files with 2 additions and 4 deletions
|
@ -1,11 +1,9 @@
|
|||
#include <errno.h>
|
||||
#include "libc.h"
|
||||
|
||||
#undef errno
|
||||
int errno;
|
||||
|
||||
int *__errno_location(void)
|
||||
{
|
||||
static int e;
|
||||
if (libc.errno_location) return libc.errno_location();
|
||||
return &errno;
|
||||
return &e;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue