mirror of https://git.musl-libc.org/git/musl
1 changed files with 2 additions and 4 deletions
@ -1,11 +1,9 @@ |
|||||
#include <errno.h> |
#include <errno.h> |
||||
#include "libc.h" |
#include "libc.h" |
||||
|
|
||||
#undef errno |
|
||||
int errno; |
|
||||
|
|
||||
int *__errno_location(void) |
int *__errno_location(void) |
||||
{ |
{ |
||||
|
static int e; |
||||
if (libc.errno_location) return libc.errno_location(); |
if (libc.errno_location) return libc.errno_location(); |
||||
return &errno; |
return &e; |
||||
} |
} |
||||
|
|||||
Loading…
Reference in new issue