(Messy merge fixes)
[ardour.git] / libs / ardour / externalsource.cc
index 4fb102a4a0159f4099ec9c4d4c77a0aa26cec8f1..7f478b6f533b1b0d7d21a1bce814906150b9e77b 100644 (file)
@@ -76,7 +76,11 @@ ExternalSource::peak_path (string audio_path)
        stat (mp.c_str(), &stat_mount);
 
        char buf[32];
+#ifdef __APPLE__
+       snprintf (buf, sizeof (buf), "%u-%u-%d.peak", stat_mount.st_ino, stat_file.st_ino, channel);
+#else
        snprintf (buf, sizeof (buf), "%ld-%ld-%d.peak", stat_mount.st_ino, stat_file.st_ino, channel);
+#endif
 
        string res = peak_dir;
        res += buf;