summaryrefslogtreecommitdiff
path: root/xpcom/io/nsLocalFileUnix.h
diff options
context:
space:
mode:
Diffstat (limited to 'xpcom/io/nsLocalFileUnix.h')
-rw-r--r--xpcom/io/nsLocalFileUnix.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/xpcom/io/nsLocalFileUnix.h b/xpcom/io/nsLocalFileUnix.h
index 5bdc6a3da0..c49f448fd1 100644
--- a/xpcom/io/nsLocalFileUnix.h
+++ b/xpcom/io/nsLocalFileUnix.h
@@ -61,7 +61,9 @@
#define F_BSIZE f_bsize
#endif
-#if defined(HAVE_STAT64) && defined(HAVE_LSTAT64)
+// stat64 and lstat64 are deprecated on OS X. Normal stat and lstat are
+// 64-bit by default on OS X 10.6+.
+#if defined(HAVE_STAT64) && defined(HAVE_LSTAT64) && !defined(XP_DARWIN)
#define STAT stat64
#define LSTAT lstat64
#define HAVE_STATS64 1