[llvm] r346577 - Fix DragonFlyBSD build
David Carlier via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 9 17:01:03 PST 2018
Author: devnexen
Date: Fri Nov 9 17:01:03 2018
New Revision: 346577
URL: http://llvm.org/viewvc/llvm-project?rev=346577&view=rev
Log:
Fix DragonFlyBSD build
Reviewers: rnk, thakis
Reviewed By: krytarowski
Differential Revision: https://reviews.llvm.org/D54363
Modified:
llvm/trunk/lib/Support/Unix/Path.inc
Modified: llvm/trunk/lib/Support/Unix/Path.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/Path.inc?rev=346577&r1=346576&r2=346577&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/Path.inc (original)
+++ llvm/trunk/lib/Support/Unix/Path.inc Fri Nov 9 17:01:03 2018
@@ -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
More information about the llvm-commits
mailing list