diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-08-01 01:59:58 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-08-01 01:59:58 +0200 |
commit | e5c2256e360df3662295b8cc0594568e425e8679 (patch) | |
tree | 855ce0e26013ed5fddd5fb0a5233d624def7317c /src/modules/module-pipe-source.c | |
parent | 0113e7282cc5c0131f9f681b84459fcdf2e806c4 (diff) |
pipe: replace PIPE_BUF macro pa pa_pipe_buf call
This should help portability to platforms that lack PIPE_BUF. Based on a
patch from Samuel Thibault.
See ticket #546
Diffstat (limited to 'src/modules/module-pipe-source.c')
-rw-r--r-- | src/modules/module-pipe-source.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/module-pipe-source.c b/src/modules/module-pipe-source.c index e5609fb59..49104f8d5 100644 --- a/src/modules/module-pipe-source.c +++ b/src/modules/module-pipe-source.c @@ -142,7 +142,7 @@ static void thread_func(void *userdata) { void *p; if (!u->memchunk.memblock) { - u->memchunk.memblock = pa_memblock_new(u->core->mempool, PIPE_BUF); + u->memchunk.memblock = pa_memblock_new(u->core->mempool, pa_pipe_buf(u->fd)); u->memchunk.index = u->memchunk.length = 0; } |