[PATCH] D54363: Fix DragonFlyBSD build

David CARLIER via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 9 17:03:37 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL346577: Fix DragonFlyBSD build (authored by devnexen, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D54363?vs=173475&id=173476#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D54363

Files:
  llvm/trunk/lib/Support/Unix/Path.inc


Index: llvm/trunk/lib/Support/Unix/Path.inc
===================================================================
--- llvm/trunk/lib/Support/Unix/Path.inc
+++ llvm/trunk/lib/Support/Unix/Path.inc
@@ -38,6 +38,8 @@
 #ifdef __APPLE__
 #include <mach-o/dyld.h>
 #include <sys/attr.h>
+#elif defined(__DragonFly__)
+#include <sys/mount.h>
 #endif
 
 // Both stdio.h and cstdio are included via different paths and
@@ -83,7 +85,7 @@
 #define STATVFS_F_FRSIZE(vfs) static_cast<uint64_t>(vfs.f_bsize)
 #endif
 
-#if defined(__NetBSD__) || defined(__GNU__)
+#if defined(__NetBSD__) || defined(__DragonFly__) || defined(__GNU__)
 #define STATVFS_F_FLAG(vfs) (vfs).f_flag
 #else
 #define STATVFS_F_FLAG(vfs) (vfs).f_flags


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54363.173476.patch
Type: text/x-patch
Size: 710 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181110/c4849ab4/attachment.bin>


More information about the llvm-commits mailing list