summaryrefslogtreecommitdiff
path: root/zen/symlink_target.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:23:19 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:23:19 +0200
commit0887aee8c54d0ed51bb2031431e2bcdafebb4c6e (patch)
tree69537ceb9787bb25ac363cc4e6cdaf0804d78363 /zen/symlink_target.h
parent5.12 (diff)
downloadFreeFileSync-0887aee8c54d0ed51bb2031431e2bcdafebb4c6e.tar.gz
FreeFileSync-0887aee8c54d0ed51bb2031431e2bcdafebb4c6e.tar.bz2
FreeFileSync-0887aee8c54d0ed51bb2031431e2bcdafebb4c6e.zip
5.13
Diffstat (limited to 'zen/symlink_target.h')
-rw-r--r--zen/symlink_target.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/zen/symlink_target.h b/zen/symlink_target.h
index 1a616559..95aa84fb 100644
--- a/zen/symlink_target.h
+++ b/zen/symlink_target.h
@@ -16,7 +16,7 @@
#include "privilege.h"
#include "long_path_prefix.h"
-#elif defined FFS_LINUX
+#elif defined FFS_LINUX || defined FFS_MAC
#include <unistd.h>
#endif
@@ -39,14 +39,6 @@ Zstring getSymlinkRawTargetString(const Zstring& linkPath); //throw FileError
-
-
-
-
-
-
-
-
//################################ implementation ################################
#ifdef _MSC_VER //I don't have Windows Driver Kit at hands right now, so unfortunately we need to redefine this structures and cross fingers...
typedef struct _REPARSE_DATA_BUFFER //from ntifs.h
@@ -145,7 +137,7 @@ Zstring getSymlinkRawTargetString_impl(const Zstring& linkPath) //throw FileErro
return output;
-#elif defined FFS_LINUX
+#elif defined FFS_LINUX || defined FFS_MAC
const int BUFFER_SIZE = 10000;
std::vector<char> buffer(BUFFER_SIZE);
bgstack15