[llvm] r349434 - [Support] Fix GNU/kFreeBSD build
Eli Friedman via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 17 17:38:20 PST 2018
Author: efriedma
Date: Mon Dec 17 17:38:20 2018
New Revision: 349434
URL: http://llvm.org/viewvc/llvm-project?rev=349434&view=rev
Log:
[Support] Fix GNU/kFreeBSD build
Patch by James Clarke.
Differential Revision: https://reviews.llvm.org/D55296
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=349434&r1=349433&r2=349434&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/Path.inc (original)
+++ llvm/trunk/lib/Support/Unix/Path.inc Mon Dec 17 17:38:20 2018
@@ -56,7 +56,7 @@
#include <sys/types.h>
#if !defined(__APPLE__) && !defined(__OpenBSD__) && !defined(__FreeBSD__) && \
- !defined(__linux__)
+ !defined(__linux__) && !defined(__FreeBSD_kernel__)
#include <sys/statvfs.h>
#define STATVFS statvfs
#define FSTATVFS fstatvfs
More information about the llvm-commits
mailing list