summaryrefslogtreecommitdiff
path: root/include/pthread.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/pthread.h')
-rw-r--r--include/pthread.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/pthread.h b/include/pthread.h
index bba9587e..e238321b 100644
--- a/include/pthread.h
+++ b/include/pthread.h
@@ -79,6 +79,9 @@ int pthread_detach(pthread_t);
_Noreturn void pthread_exit(void *);
int pthread_join(pthread_t, void **);
+#ifdef __GNUC__
+__attribute__((const))
+#endif
pthread_t pthread_self(void);
int pthread_equal(pthread_t, pthread_t);