diff options
Diffstat (limited to 'src/pulsecore/random.c')
-rw-r--r-- | src/pulsecore/random.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/pulsecore/random.c b/src/pulsecore/random.c index 87afebfa..5deac37b 100644 --- a/src/pulsecore/random.c +++ b/src/pulsecore/random.c @@ -1,5 +1,3 @@ -/* $Id$ */ - /*** This file is part of PulseAudio. @@ -64,7 +62,11 @@ static int random_proper(void *ret_data, size_t length) { while (*device) { ret = 0; - if ((fd = open(*device, O_RDONLY)) >= 0) { + if ((fd = open(*device, O_RDONLY +#ifdef O_NOCTTY + | O_NOCTTY +#endif + )) >= 0) { if ((r = pa_loop_read(fd, ret_data, length, NULL)) < 0 || (size_t) r != length) ret = -1; |