about summary refs log tree commit diff
path: root/include/errno.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/errno.h')
-rw-r--r--include/errno.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/errno.h b/include/errno.h
index d9c2c9c7..9d680338 100644
--- a/include/errno.h
+++ b/include/errno.h
@@ -7,6 +7,9 @@ extern "C" {
 
 #include <bits/errno.h>
 
+#ifdef __GNUC__
+__attribute__((const))
+#endif
 extern int *__errno_location(void);
 #define errno (*__errno_location())