From: vsr Date: Mon, 15 Mar 2010 09:31:54 +0000 (+0000) Subject: Fix compilation problem on Debian Sarge X-Git-Tag: V5_1_4a1~35 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e2018c03930feea8189e685d3593bf85238b78a8;p=modules%2Fsmesh.git Fix compilation problem on Debian Sarge --- diff --git a/src/SMESH/SMESH_File.cxx b/src/SMESH/SMESH_File.cxx index 5338a6b7f..a86092b42 100644 --- a/src/SMESH/SMESH_File.cxx +++ b/src/SMESH/SMESH_File.cxx @@ -7,6 +7,7 @@ #include "utilities.h" #include +#include #include #include #include @@ -125,7 +126,8 @@ bool SMESH_File::remove() { close(); try { - OSD_File( TCollection_AsciiString((char*)_name.data()) ).Remove(); + OSD_Path filePath(TCollection_AsciiString((char*)_name.data())); + OSD_File(filePath).Remove(); } catch ( Standard_ProgramError ) { MESSAGE("Can't remove file: " << _name << " ; file does not exist or permission denied");