From d61f300b7bc316ea3df51813b390d88cbdeffde8 Mon Sep 17 00:00:00 2001 From: "hp.com!davidm" Date: Mon, 24 Nov 2003 23:53:25 +0000 Subject: [PATCH] (ia64_script_cache): If HAVE_ATOMIC_OPS_H is true, declare "busy" member in lieu of "lock" member. (Logical change 1.124) --- include/ia64/script.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/ia64/script.h b/include/ia64/script.h index c7d53035..f0844d65 100644 --- a/include/ia64/script.h +++ b/include/ia64/script.h @@ -74,7 +74,11 @@ struct ia64_script struct ia64_script_cache { +#ifdef HAVE_ATOMIC_OPS_H + AO_TS_T busy; /* is the script-cache busy? */ +#else pthread_mutex_t lock; +#endif unsigned short lru_head; /* index of lead-recently used script */ unsigned short lru_tail; /* index of most-recently used script */