fix getaddrinfo regression with AI_ADDRCONFIG on some configurations
[musl.git] / include / errno.h
blob93f5f6ecb6c357816ad0a31e209df751de09e881
1 #ifndef _ERRNO_H
2 #define _ERRNO_H
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
8 #include <features.h>
10 #include <bits/errno.h>
12 int *__errno_location(void);
13 #define errno (*__errno_location())
15 #ifdef _GNU_SOURCE
16 extern char *program_invocation_short_name, *program_invocation_name;
17 #endif
19 #ifdef __cplusplus
21 #endif
23 #endif