From 1b0055a3f7ba0854caed0474d64669864b17b3cb Mon Sep 17 00:00:00 2001
From: Valentin Volkl <valentin.volkl@cern.ch>
Date: Mon, 28 Nov 2022 19:37:21 +0100
Subject: [PATCH] fix build on macos

---
 GaudiHive/src/PRGraph/PrecedenceRulesGraph.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/GaudiHive/src/PRGraph/PrecedenceRulesGraph.cpp b/GaudiHive/src/PRGraph/PrecedenceRulesGraph.cpp
index 97d5e135c0..1aca7e9ac0 100644
--- a/GaudiHive/src/PRGraph/PrecedenceRulesGraph.cpp
+++ b/GaudiHive/src/PRGraph/PrecedenceRulesGraph.cpp
@@ -630,7 +630,7 @@ namespace concurrency {
 
   void PrecedenceRulesGraph::dumpPrecRules( const boost::filesystem::path& fileName, const EventSlot& slot ) {
     std::ofstream myfile;
-    myfile.open( fileName, std::ios::app );
+    myfile.open( fileName.c_str(), std::ios::app );
 
     // Declare properties to dump
     boost::dynamic_properties dp;
@@ -671,7 +671,7 @@ namespace concurrency {
   //---------------------------------------------------------------------------
   void PrecedenceRulesGraph::dumpPrecTrace( const boost::filesystem::path& fileName, const EventSlot& slot ) {
     std::ofstream myfile;
-    myfile.open( fileName, std::ios::app );
+    myfile.open( fileName.c_str(), std::ios::app );
 
     // Fill runtimes (as this could not be done on the fly during trace assembling)
     SmartIF<ITimelineSvc> timelineSvc = m_svcLocator->service<ITimelineSvc>( "TimelineSvc", false );
-- 
GitLab