X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fpthread.h;h=a0af20fe38e769ad787c6ec4310b6ad49d7bb44e;hb=51e2d8310222ddd4d4e895f55c627100d863aa95;hp=5d97ebf61c804c7639886f4104f6b2db57265a34;hpb=ddd87b2f10baf35ed32917bd488be8bf53ad0cc3;p=musl diff --git a/include/pthread.h b/include/pthread.h index 5d97ebf6..a0af20fe 100644 --- a/include/pthread.h +++ b/include/pthread.h @@ -76,6 +76,9 @@ int pthread_detach(pthread_t); 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);