From 099e1ba25199f75e261c42fa26f8bcbbe002f809 Mon Sep 17 00:00:00 2001
From: Allanis <allanis@saracraft.net>
Date: Sun, 2 Feb 2014 19:54:37 +0000
Subject: [PATCH] [Change] Using remove() as apposed to unlink() for
 portability.

---
 TODO       | 1 -
 src/save.c | 7 ++-----
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/TODO b/TODO
index 0468499..be94180 100644
--- a/TODO
+++ b/TODO
@@ -5,7 +5,6 @@ Vital:
   -- System obstacles and such.
     -- Interference
     -- Asteroids.
-  -- More loading screens.
   -- Real news.
   -- Dynamic Economy.
 
diff --git a/src/save.c b/src/save.c
index 58649ad..95e5a2c 100644
--- a/src/save.c
+++ b/src/save.c
@@ -1,7 +1,4 @@
-#ifdef _POSIX_SOURCE
-#include <unistd.h> /* Unlink. */
-#endif
-
+#include <stdio.h> /* remove() */
 #include "lephisto.h"
 #include "log.h"
 #include "xml.h"
@@ -191,7 +188,7 @@ static void load_menu_delete(unsigned int wdw, char* str) {
     return;
 
   snprintf(path, PATH_MAX, "%ssaves/%s.ls", lfile_basePath(), save);
-  unlink(path);
+  remove(path); /* Remove is more portable and will call unlink on Linux. */
 
   /* Need to reload the menu. */
   load_menu_close(wdw, NULL);