summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Unix
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2018-11-10 01:01:03 +0000
committerDavid Carlier <devnexen@gmail.com>2018-11-10 01:01:03 +0000
commitb79eee487d0eccbe1ad2a5b5a8f753d41a445239 (patch)
tree12e5d5804f728c9272500cde56a12279e7d9b538 /llvm/lib/Support/Unix
parentfb93aecf8d1d5a44f9d13136bef429f4ed3b54da (diff)
downloadbcm5719-llvm-b79eee487d0eccbe1ad2a5b5a8f753d41a445239.tar.gz
bcm5719-llvm-b79eee487d0eccbe1ad2a5b5a8f753d41a445239.zip
Fix DragonFlyBSD build
Reviewers: rnk, thakis Reviewed By: krytarowski Differential Revision: https://reviews.llvm.org/D54363 llvm-svn: 346577
Diffstat (limited to 'llvm/lib/Support/Unix')
-rw-r--r--llvm/lib/Support/Unix/Path.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc
index 02b7c2579c9..e36e389c92f 100644
--- a/llvm/lib/Support/Unix/Path.inc
+++ b/llvm/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
OpenPOWER on IntegriCloud