diff options
author | nick_m <mainsbridge@gmail.com> | 2015-03-11 01:57:16 +1100 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2015-03-11 01:57:16 +1100 |
commit | a2b35aa634b7dce6f3047e85f16a0664f71f3695 (patch) | |
tree | feaa63094c0c3cb04962f8afa07e81f90a8d4fa7 | |
parent | fb8bc4e8c97b4977b9698ba92b9ff7a8b9c54a5c (diff) |
Fix compilation for osx.
-rw-r--r-- | libs/ardour/audiosource.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/audiosource.cc b/libs/ardour/audiosource.cc index 334322005e..5036ac91b1 100644 --- a/libs/ardour/audiosource.cc +++ b/libs/ardour/audiosource.cc @@ -343,7 +343,7 @@ AudioSource::read_peaks_with_fpp (PeakData *peaks, framecnt_t npeaks, framepos_t const int bufsize = sysconf(_SC_PAGESIZE); framecnt_t zero_fill = 0; -#ifdef PLATFORM_WINDOWS +#if defined (PLATFORM_WINDOWS) || defined ( __APPLE__) ScopedFileDescriptor sfd (::open (peakpath.c_str(), O_RDONLY | O_NONBLOCK)); #else ScopedFileDescriptor sfd (::open (peakpath.c_str(), O_RDONLY | O_NOATIME | O_NONBLOCK)); |