[aseprite] 143/196: Fix issues compiling base/fs_unix.h on FreeBSD (close #1016)

Tobias Hansen thansen at moszumanska.debian.org
Wed Apr 20 18:50:13 UTC 2016


This is an automated email from the git hooks/post-receive script.

thansen pushed a commit to branch master
in repository aseprite.

commit f25c030a208def9e6f8d05dcf6ea8d37a67b9b81
Author: David Capello <davidcapello at gmail.com>
Date:   Mon Apr 4 11:11:57 2016 -0300

    Fix issues compiling base/fs_unix.h on FreeBSD (close #1016)
---
 src/base/fs_unix.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/base/fs_unix.h b/src/base/fs_unix.h
index 77e4e79..17290f9 100644
--- a/src/base/fs_unix.h
+++ b/src/base/fs_unix.h
@@ -1,5 +1,5 @@
 // Aseprite Base Library
-// Copyright (c) 2001-2013, 2015 David Capello
+// Copyright (c) 2001-2016 David Capello
 //
 // This file is released under the terms of the MIT license.
 // Read LICENSE.txt for more information.
@@ -9,6 +9,8 @@
 #include <sys/types.h>
 #include <unistd.h>
 
+#include <climits>              // Required for PATH_MAX
+#include <cstdio>               // Required for rename()
 #include <cstdlib>
 #include <ctime>
 #include <stdexcept>
@@ -56,7 +58,7 @@ size_t file_size(const std::string& path)
 
 void move_file(const std::string& src, const std::string& dst)
 {
-  int result = rename(src.c_str(), dst.c_str());
+  int result = std::rename(src.c_str(), dst.c_str());
   if (result != 0)
     // TODO add errno into the exception
     throw std::runtime_error("Error moving file");

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git



More information about the Pkg-games-commits mailing list