From e2018c03930feea8189e685d3593bf85238b78a8 Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 15 Mar 2010 09:31:54 +0000 Subject: [PATCH] Fix compilation problem on Debian Sarge --- src/SMESH/SMESH_File.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"); -- 2.39.2