summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/compat.h
diff options
context:
space:
mode:
authorHarshavardhana <harsha@harshavardhana.net>2014-10-19 12:42:05 -0700
committerHarshavardhana <harsha@harshavardhana.net>2014-10-23 12:08:16 -0700
commit0386f0a51e7e445c66bedc7472037e22066eb66a (patch)
tree16dc97d07f2585438c1cfed4e669dbf9690d3575 /libglusterfs/src/compat.h
parent56caf4349c8824fde70783fe404cc6f646dce149 (diff)
libglusterfs: Do not redefine AT_SYMLINK_NOFOLLOW on Darwin
Change-Id: I6c31b0a01da4b2ad05d4df67418e917c2774faa9 BUG: 1089172 Signed-off-by: Harshavardhana <harsha@harshavardhana.net> Reviewed-on: http://review.gluster.org/8943 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Diffstat (limited to 'libglusterfs/src/compat.h')
-rw-r--r--libglusterfs/src/compat.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libglusterfs/src/compat.h b/libglusterfs/src/compat.h
index 20d15c44e70..1522257dffe 100644
--- a/libglusterfs/src/compat.h
+++ b/libglusterfs/src/compat.h
@@ -190,7 +190,10 @@ enum {
#define le64toh(x) OSSwapLittleToHostInt64(x)
#define UNIX_PATH_MAX 104
+/* OSX Yosemite now has this defined */
+#ifndef AT_SYMLINK_NOFOLLOW
#define AT_SYMLINK_NOFOLLOW 0x100
+#endif
#include <sys/types.h>
#include <sys/un.h>