summaryrefslogtreecommitdiff
path: root/beecrypt/entropy.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2002-08-31 22:39:34 +0000
committerjbj <devnull@localhost>2002-08-31 22:39:34 +0000
commitcc5d229b0e7a13f4d9efac2aed5926a0078df48c (patch)
treeb5a1a608498f322dad0cd9534ccd9da4c121b3a0 /beecrypt/entropy.c
parent929d5d38346273dbdaf20e5ceb3b1687405676af (diff)
downloadlibrpm-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.c9
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