fixes for host gcc 4.6.1
[zpugcc/jano.git] / toolchain / gcc / newlib / libc / errno / errno.c
blobfd1743d73625bf098fc23af9c06924381f840139
1 /* The errno variable is stored in the reentrancy structure. This
2 function returns its address for use by the macro errno defined in
3 errno.h. */
5 #include <errno.h>
6 #include <reent.h>
8 #ifndef _REENT_ONLY
10 int *
11 __errno ()
13 return &_REENT->_errno;
16 #endif