Bug 784124 - FreeBSD supports statvfs(2) since 5.0. r=bsmedberg
authorJan Beich <jbeich@tormail.org>
Wed, 29 Aug 2012 17:00:09 -0400
changeset 103816 cbeea411b904c7934094cc28625c49d38d260536
parent 103815 cfa7cdede09c42af042e388cb54f372c115e53b5
child 103817 1ffa5cb41f5453e19ef54d4baaef56bd07e23ffe
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersbsmedberg
bugs784124
milestone18.0a1
Bug 784124 - FreeBSD supports statvfs(2) since 5.0. r=bsmedberg
xpcom/io/nsLocalFileUnix.h
--- a/xpcom/io/nsLocalFileUnix.h
+++ b/xpcom/io/nsLocalFileUnix.h
@@ -47,24 +47,16 @@
 #else
     #ifdef HAVE_STATVFS
         #define STATFS statvfs
     #else
         #define STATFS statfs
     #endif
 #endif
 
-// so we can statfs on freebsd
-#if defined(__FreeBSD__)
-    #define HAVE_SYS_STATFS_H
-    #define STATFS statfs
-    #include <sys/param.h>
-    #include <sys/mount.h>
-#endif
-
 #if defined(HAVE_STAT64) && defined(HAVE_LSTAT64)
     #if defined (AIX)
         #if defined STAT
             #undef STAT
         #endif
     #endif
     #define STAT stat64
     #define LSTAT lstat64