diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/k5-thread.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/include/k5-thread.h b/src/include/k5-thread.h index ac356edf5e..4122c81511 100644 --- a/src/include/k5-thread.h +++ b/src/include/k5-thread.h @@ -441,7 +441,12 @@ typedef k5_os_nothread_mutex k5_os_mutex; # pragma weak pthread_mutex_init # pragma weak pthread_self # pragma weak pthread_equal -extern int krb5int_pthread_loaded(void); +extern int krb5int_pthread_loaded(void) +#ifdef __GNUC__ + /* We should always get the same answer for the life of the process. */ + __attribute__((const)) +#endif + ; # define K5_PTHREADS_LOADED (krb5int_pthread_loaded()) #else /* no pragma weak support */ |