summaryrefslogtreecommitdiff
path: root/zen/symlink_target.h
diff options
context:
space:
mode:
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