diff options
Diffstat (limited to 'libc/misc/internals/__h_errno_location.c')
-rw-r--r-- | libc/misc/internals/__h_errno_location.c | 10 |
1 files changed, 10 insertions, 0 deletions
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 <features.h> +#include <netdb.h> +#undef h_errno + +int * weak_const_function __h_errno_location (void) +{ + return &h_errno; +} + |