Skip to content

Commit

Permalink
ticket: 3293
Browse files Browse the repository at this point in the history
status: open

* k5-thread.h (USE_PTHREAD_LOCK_ONLY_IF_LOADED): Define any time
HAVE_PRAGMA_WEAK_REF is defined.


git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17563 dc483132-0cff-0310-8789-dd5450dbe970
  • Loading branch information
raeburn committed Dec 17, 2005
1 parent ef48c79 commit 281b00d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 5 additions & 0 deletions src/include/ChangeLog
@@ -1,3 +1,8 @@
2005-12-16 Ken Raeburn <raeburn@mit.edu>

* k5-thread.h (USE_PTHREAD_LOCK_ONLY_IF_LOADED): Define any time
HAVE_PRAGMA_WEAK_REF is defined.

2005-12-07 Ken Raeburn <raeburn@mit.edu>

* k5-thread.h (k5_mutex_lock_update_stats) [__GNUC__]: Use an
Expand Down
5 changes: 1 addition & 4 deletions src/include/k5-thread.h
Expand Up @@ -439,12 +439,9 @@ extern int krb5int_pthread_loaded(void);
# error "Weak reference support is required"
# endif
# endif
# define USE_PTHREAD_LOCK_ONLY_IF_LOADED
#endif

#if !defined(HAVE_PTHREAD_MUTEX_LOCK) && !defined(USE_PTHREAD_LOCK_ONLY_IF_LOADED)
/* If we find a system with a broken stub for pthread_mutex_lock,
we may have to change this. */
#ifdef HAVE_PRAGMA_WEAK_REF
# define USE_PTHREAD_LOCK_ONLY_IF_LOADED
#endif

Expand Down

0 comments on commit 281b00d

Please sign in to comment.