Replaced call to "unlink" with one to "remove". This should be more portable...
authorChristoph Sommer <mail@christoph-sommer.de>
Thu, 1 Feb 2007 20:43:57 +0000 (20:43 +0000)
committerChristoph Sommer <mail@christoph-sommer.de>
Thu, 1 Feb 2007 20:43:57 +0000 (20:43 +0000)
SVN-Revision: 4774

src/addon_manager.cpp

index dcbbdf1..ef82ab0 100644 (file)
@@ -23,6 +23,7 @@
 #include <list>
 #include <physfs.h>
 #include <sys/stat.h>
+#include <stdio.h>
 #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());
 }