projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix return value of nl_langinfo for invalid item arguments
[musl]
/
include
/
errno.h
diff --git
a/include/errno.h
b/include/errno.h
index
9e1e320
..
93f5f6e
100644
(file)
--- a/
include/errno.h
+++ b/
include/errno.h
@@
-5,14
+5,17
@@
extern "C" {
#endif
extern "C" {
#endif
+#include <features.h>
+
#include <bits/errno.h>
#include <bits/errno.h>
-#ifdef __GNUC__
-__attribute__((const))
-#endif
int *__errno_location(void);
#define errno (*__errno_location())
int *__errno_location(void);
#define errno (*__errno_location())
+#ifdef _GNU_SOURCE
+extern char *program_invocation_short_name, *program_invocation_name;
+#endif
+
#ifdef __cplusplus
}
#endif
#ifdef __cplusplus
}
#endif