projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b27cda4
)
If krb5int_pthread_loaded is a function and we're using gcc, give it 'const' attribute
author
Ken Raeburn
<raeburn@mit.edu>
Fri, 8 Aug 2008 16:06:47 +0000
(16:06 +0000)
committer
Ken Raeburn
<raeburn@mit.edu>
Fri, 8 Aug 2008 16:06:47 +0000
(16:06 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20637
dc483132
-0cff-0310-8789-
dd5450dbe970
src/include/k5-thread.h
patch
|
blob
|
history
diff --git
a/src/include/k5-thread.h
b/src/include/k5-thread.h
index ac356edf5e07153a0126cab973b222f42d35a8cd..4122c8151139e3eb99d3b2d633ade4b51f43da2f 100644
(file)
--- 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 */