From 7943d8ce53992318656a3d031d5fe05cf878a8df Mon Sep 17 00:00:00 2001 From: Pete Johns Date: Sun, 26 Dec 2010 14:11:05 +1100 Subject: [PATCH] canonicalize_file_name() is a GNU-extension. Replaced with call to realpath() to build on non-Linux systems, such as Mac OSX. --- lib/filelister_unix.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/filelister_unix.cpp b/lib/filelister_unix.cpp index a761782ec..556a34c75 100644 --- a/lib/filelister_unix.cpp +++ b/lib/filelister_unix.cpp @@ -25,7 +25,7 @@ #ifndef _WIN32 // POSIX-style system #include #include -#include // canonicalize_file_name +#include #endif #ifndef _WIN32 @@ -58,7 +58,7 @@ void FileListerUnix::recursiveAddFiles2(std::vector &relative, if (filename[filename.length()-1] != '/') { // File - char * const fname = canonicalize_file_name(filename.c_str()); + char* const fname = realpath(filename.c_str(), NULL); if (!fname) continue;