getopt: fix null pointer arithmetic ub
[musl] / src / include / errno.h
1 #ifndef ERRNO_H
2 #define ERRNO_H
3
4 #include "../../include/errno.h"
5
6 #ifdef __GNUC__
7 __attribute__((const))
8 #endif
9 hidden int *___errno_location(void);
10
11 #undef errno
12 #define errno (*___errno_location())
13
14 #endif