From 3ce9d89c39d82a1d96301e2ec96c11020f633544 Mon Sep 17 00:00:00 2001 From: Christoph Sommer Date: Thu, 1 Feb 2007 20:43:57 +0000 Subject: [PATCH] Replaced call to "unlink" with one to "remove". This should be more portable... SVN-Revision: 4774 --- src/addon_manager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/addon_manager.cpp b/src/addon_manager.cpp index dcbbdf126..ef82ab0f0 100644 --- a/src/addon_manager.cpp +++ b/src/addon_manager.cpp @@ -23,6 +23,7 @@ #include #include #include +#include #include "addon_manager.hpp" #include "config.h" #include "log.hpp" @@ -233,5 +234,5 @@ void AddonManager::remove(const Addon& addon) { PHYSFS_removeFromSearchPath(addon.fname.c_str()); - unlink(addon.fname.c_str()); + ::remove(addon.fname.c_str()); } -- 2.11.0