use the correct attributes for ___errno_location
[musl] / src / include / errno.h
index 54a38ff..8ec4937 100644 (file)
@@ -3,6 +3,9 @@
 
 #include "../../include/errno.h"
 
+#ifdef __GNUC__
+__attribute__((const))
+#endif
 hidden int *___errno_location(void);
 
 #undef errno