mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
common: Fix build problem with Sun Studio compiler.
* common/estream.c (ESTREAM_MUTEX_UNLOCK): Use int dummy dummy functions. (ESTREAM_MUTEX_INITIALIZE): Ditto. -- GnuPG-bug-id: 1566 Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
f72d9a5cf6
commit
571bcd4662
@ -181,13 +181,13 @@ static int estream_pth_killed;
|
||||
(estream_pth_killed ? dummy_mutex_call_void ((mutex)) \
|
||||
: (void)pth_mutex_acquire (&(mutex), 0, NULL))
|
||||
# define ESTREAM_MUTEX_UNLOCK(mutex) \
|
||||
(estream_pth_killed ? dummy_mutex_call_void ((mutex)) \
|
||||
(estream_pth_killed ? dummy_mutex_call_int ((mutex)) \
|
||||
: pth_mutex_release (&(mutex)))
|
||||
# define ESTREAM_MUTEX_TRYLOCK(mutex) \
|
||||
(estream_pth_killed ? dummy_mutex_call_int ((mutex)) \
|
||||
: ((pth_mutex_acquire (&(mutex), 1, NULL) == TRUE)? 0:-1))
|
||||
# define ESTREAM_MUTEX_INITIALIZE(mutex) \
|
||||
(estream_pth_killed ? dummy_mutex_call_void ((mutex)) \
|
||||
(estream_pth_killed ? dummy_mutex_call_int ((mutex)) \
|
||||
: pth_mutex_init (&(mutex)))
|
||||
|
||||
#else /*!HAVE_PTH*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user