projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cd48f0
)
change errno to static linkage (improves PIC code generation)
author
Rich Felker
<dalias@aerifal.cx>
Tue, 22 Feb 2011 04:00:52 +0000
(23:00 -0500)
committer
Rich Felker
<dalias@aerifal.cx>
Tue, 22 Feb 2011 04:00:52 +0000
(23:00 -0500)
src/errno/__errno_location.c
patch
|
blob
|
history
diff --git
a/src/errno/__errno_location.c
b/src/errno/__errno_location.c
index 0a220b6383a6d1ff547164c34c075b4614cd65c7..a0185780c531cc2a21edf9b0d059eac1b4c6c071 100644
(file)
--- a/
src/errno/__errno_location.c
+++ b/
src/errno/__errno_location.c
@@
-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 &e
rrno
;
+ return &e;
}