add fallocate (nonstandardized) function
[musl] / include / errno.h
index d9c2c9c..9e1e320 100644 (file)
@@ -7,7 +7,10 @@ extern "C" {
 
 #include <bits/errno.h>
 
-extern int *__errno_location(void);
+#ifdef __GNUC__
+__attribute__((const))
+#endif
+int *__errno_location(void);
 #define errno (*__errno_location())
 
 #ifdef __cplusplus