diff options
author | Pierre Ossman <ossman@cendio.se> | 2007-10-03 14:47:26 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2007-10-03 14:47:26 +0000 |
commit | cef65632734caf00fbf1b0e44672d0e3c533c52f (patch) | |
tree | bf5ec714f759e19143ecef82389693476cd1c150 /src/pulsecore/sound-file-stream.c | |
parent | ce74146a817481c95942f4afee73d918ba82427d (diff) |
Assorted minor Windows compatibility fixes for recent code updates.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1928 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/pulsecore/sound-file-stream.c')
-rw-r--r-- | src/pulsecore/sound-file-stream.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/pulsecore/sound-file-stream.c b/src/pulsecore/sound-file-stream.c index 6c70c4f1..d9f11a26 100644 --- a/src/pulsecore/sound-file-stream.c +++ b/src/pulsecore/sound-file-stream.c @@ -244,7 +244,11 @@ int pa_play_file( memset(&sfinfo, 0, sizeof(sfinfo)); - if ((fd = open(fname, O_RDONLY|O_NOCTTY)) < 0) { + if ((fd = open(fname, O_RDONLY +#ifdef O_NOCTTY + |O_NOCTTY +#endif + )) < 0) { pa_log("Failed to open file %s: %s", fname, pa_cstrerror(errno)); goto fail; } |