diff options
Diffstat (limited to 'libc/misc/internals/__errno_location.c')
-rw-r--r-- | libc/misc/internals/__errno_location.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libc/misc/internals/__errno_location.c b/libc/misc/internals/__errno_location.c new file mode 100644 index 000000000..10b97753f --- /dev/null +++ b/libc/misc/internals/__errno_location.c @@ -0,0 +1,8 @@ +#include <errno.h> +#undef errno + +int * weak_const_function __errno_location (void) +{ + return &errno; +} + |