mirror of
https://github.com/fluencelabs/musl
synced 2025-07-31 06:11:57 +00:00
change errno to static linkage (improves PIC code generation)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user