diff --git a/server/streamreader/pipe_stream.cpp b/server/streamreader/pipe_stream.cpp index 11364fdc..f3cb207a 100644 --- a/server/streamreader/pipe_stream.cpp +++ b/server/streamreader/pipe_stream.cpp @@ -57,7 +57,7 @@ void PipeStream::do_connect() { int fd = open(uri_.path.c_str(), O_RDONLY | O_NONBLOCK); int pipe_size = -1; -#if !defined(MACOS) +#ifndef MACOS pipe_size = fcntl(fd, F_GETPIPE_SZ); #endif LOG(INFO, LOG_TAG) << "Stream: " << name_ << ", connect to pipe: " << uri_.path << ", fd: " << fd << ", pipe size: " << pipe_size << "\n";