summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/include/errno.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/errno.h b/src/include/errno.h
index 54a38ff4..8ec49377 100644
--- a/src/include/errno.h
+++ b/src/include/errno.h
@@ -3,6 +3,9 @@
#include "../../include/errno.h"
+#ifdef __GNUC__
+__attribute__((const))
+#endif
hidden int *___errno_location(void);
#undef errno