include sys/sysmacros.h from sys/types.h when _GNU_SOURCE is defined
[musl] / include / errno.h
1 #ifndef _ERRNO_H
2 #define _ERRNO_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 #include <bits/errno.h>
9
10 extern int *__errno_location(void);
11 #define errno (*__errno_location())
12
13 #ifdef __cplusplus
14 }
15 #endif
16
17 #endif
18