mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-17 19:16:14 +02:00
Fix compilation on macOS
This commit is contained in:
parent
0a03ddb46b
commit
bab52d314a
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ void PipeStream::do_connect()
|
||||||
{
|
{
|
||||||
int fd = open(uri_.path.c_str(), O_RDONLY | O_NONBLOCK);
|
int fd = open(uri_.path.c_str(), O_RDONLY | O_NONBLOCK);
|
||||||
int pipe_size = -1;
|
int pipe_size = -1;
|
||||||
#if !defined(MACOS)
|
#ifndef MACOS
|
||||||
pipe_size = fcntl(fd, F_GETPIPE_SZ);
|
pipe_size = fcntl(fd, F_GETPIPE_SZ);
|
||||||
#endif
|
#endif
|
||||||
LOG(INFO, LOG_TAG) << "Stream: " << name_ << ", connect to pipe: " << uri_.path << ", fd: " << fd << ", pipe size: " << pipe_size << "\n";
|
LOG(INFO, LOG_TAG) << "Stream: " << name_ << ", connect to pipe: " << uri_.path << ", fd: " << fd << ", pipe size: " << pipe_size << "\n";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue