diff options
author | jbj <devnull@localhost> | 2002-08-31 22:39:34 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2002-08-31 22:39:34 +0000 |
commit | cc5d229b0e7a13f4d9efac2aed5926a0078df48c (patch) | |
tree | b5a1a608498f322dad0cd9534ccd9da4c121b3a0 /beecrypt/entropy.c | |
parent | 929d5d38346273dbdaf20e5ceb3b1687405676af (diff) | |
download | librpm-tizen-cc5d229b0e7a13f4d9efac2aed5926a0078df48c.tar.gz librpm-tizen-cc5d229b0e7a13f4d9efac2aed5926a0078df48c.tar.bz2 librpm-tizen-cc5d229b0e7a13f4d9efac2aed5926a0078df48c.zip |
Sync with rpm-4.1.
CVS patchset: 5695
CVS date: 2002/08/31 22:39:34
Diffstat (limited to 'beecrypt/entropy.c')
-rw-r--r-- | beecrypt/entropy.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/beecrypt/entropy.c b/beecrypt/entropy.c index fc7b2ab97..077e85c3a 100644 --- a/beecrypt/entropy.c +++ b/beecrypt/entropy.c @@ -904,8 +904,9 @@ static const char *dev_tty_name = "/dev/tty"; static int dev_tty_fd = -1; /** \ingroup ES_tty_m + * @todo hpux needs real locking mechanism. */ -# ifdef _REENTRANT +# if defined(_REENTRANT) && !defined(hpux) # if HAVE_SYNCH_H /*@unchecked@*/ static mutex_t dev_tty_lock = DEFAULTMUTEX; @@ -1556,7 +1557,8 @@ int entropy_dev_tty(uint32* data, int size) { register int rc; - #ifdef _REENTRANT +/** @todo hpux needs real locking mechanism. */ + #if defined(_REENTRANT) && !defined(hpux) # if HAVE_SYNCH_H if (mutex_lock(&dev_tty_lock)) return -1; @@ -1581,7 +1583,8 @@ int entropy_dev_tty(uint32* data, int size) (void) close(dev_tty_fd); dev_tty_end: - #ifdef _REENTRANT +/** @todo hpux needs real locking mechanism. */ + #if defined(_REENTRANT) && !defined(hpux) # if HAVE_SYNCH_H mutex_unlock(&dev_tty_lock); # elif HAVE_PTHREAD_H |