From 033c0d7edcb04845b31ca09ae87f9c25acab975d Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 26 Feb 2002 09:35:50 +0000 Subject: Proper support for setting h_errno --- libc/misc/internals/__h_errno_location.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 libc/misc/internals/__h_errno_location.c (limited to 'libc/misc/internals/__h_errno_location.c') diff --git a/libc/misc/internals/__h_errno_location.c b/libc/misc/internals/__h_errno_location.c new file mode 100644 index 000000000..f4f598057 --- /dev/null +++ b/libc/misc/internals/__h_errno_location.c @@ -0,0 +1,10 @@ +#define __FORCE_GLIBC +#include +#include +#undef h_errno + +int * weak_const_function __h_errno_location (void) +{ + return &h_errno; +} + -- cgit v1.2.3