From a351f7751d4904353cdf514751bb6d26ea145511 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Fri, 15 Oct 2010 11:29:36 +0000 Subject: [PATCH] fix compile --- Solver/function.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Solver/function.cpp b/Solver/function.cpp index cf4dcf5b7f..effa05277a 100644 --- a/Solver/function.cpp +++ b/Solver/function.cpp @@ -5,10 +5,12 @@ #include "SPoint3.h" #include "MElement.h" #include "GModel.h" +#include "OS.h" +#include "Bindings.h" + #if defined(HAVE_DLOPEN) - #include "dlfcn.h" +#include <dlfcn.h> #endif -#include "Bindings.h" struct functionReplaceCache { dataCacheMap *map; @@ -603,8 +605,8 @@ class functionC : public function { fclose(tmpMake); if(system("make -f _tmpMake")) Msg::Error("make command failed\n"); - unlink ("_tmpSrc.cpp"); - unlink ("_tmpMake.cpp"); + UnlinkFile("_tmpSrc.cpp"); + UnlinkFile("_tmpMake.cpp"); } void call (dataCacheMap *m, fullMatrix<double> &val) { -- GitLab