Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 8614602

Browse files
committed
Fix DragonFlyBSD build
Reviewers: rnk, thakis Reviewed By: krytarowski Differential Revision: https://reviews.llvm.org/D54363 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346577 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 3816d00 commit 8614602

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/Support/Unix/Path.inc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
#ifdef __APPLE__
3939
#include <mach-o/dyld.h>
4040
#include <sys/attr.h>
41+
#elif defined(__DragonFly__)
42+
#include <sys/mount.h>
4143
#endif
4244

4345
// Both stdio.h and cstdio are included via different paths and
@@ -83,7 +85,7 @@
8385
#define STATVFS_F_FRSIZE(vfs) static_cast<uint64_t>(vfs.f_bsize)
8486
#endif
8587

86-
#if defined(__NetBSD__) || defined(__GNU__)
88+
#if defined(__NetBSD__) || defined(__DragonFly__) || defined(__GNU__)
8789
#define STATVFS_F_FLAG(vfs) (vfs).f_flag
8890
#else
8991
#define STATVFS_F_FLAG(vfs) (vfs).f_flags

0 commit comments

Comments
 (0)