#include <apt-pkg/fileutl.h>
#include <stddef.h>
+#include <stdlib.h>
#include <unistd.h>
#include <string>
if (tempDir.empty())
return;
- unlink(tempStatesFile.c_str());
- unlink(tempPrefsFile.c_str());
+ RemoveFile("DeInitialize", tempStatesFile);
+ RemoveFile("DeInitialize", tempPrefsFile);
rmdir(tempDir.c_str());
}