X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=include%2Ferrno.h;h=0361b33ad348a2ab1d3422a2399cb2e3ccf0217b;hp=d9c2c9c73099a5161c3d6568f41a3f8e000ce752;hb=de80ea9f1c2821cbb4205533b86d5d17f9e8d376;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01 diff --git a/include/errno.h b/include/errno.h index d9c2c9c7..0361b33a 100644 --- a/include/errno.h +++ b/include/errno.h @@ -5,11 +5,20 @@ extern "C" { #endif +#include + #include -extern int *__errno_location(void); +#ifdef __GNUC__ +__attribute__((const)) +#endif +int *__errno_location(void); #define errno (*__errno_location()) +#ifdef _GNU_SOURCE +extern char *program_invocation_short_name, *program_invocation_name; +#endif + #ifdef __cplusplus } #endif