summaryrefslogtreecommitdiffstats
path: root/libc/misc/internals/__h_errno_location.c
blob: 209dcfc9c3f0969d2508e36be651b2a511fbc664 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#define __FORCE_GLIBC
#include <features.h>
#include <netdb.h>

#ifndef __UCLIBC_HAS_THREADS_NATIVE__
#undef h_errno
extern int h_errno;
#endif

int * weak_const_function __h_errno_location (void)
{
    return &h_errno;
}