From 98f800dabecdcd9ec7aefc43a4612a6fefc19aaf Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Wed, 21 Aug 2019 15:24:25 +0000 Subject: [PATCH] compiler-rt: Fix warning if COMPILER_RT_HAS_FCNTL_LCK is 0 Fixes "warning: implicit declaration of function 'flock' is invalid in C99" for flock(). llvm-svn: 369534 --- compiler-rt/lib/profile/InstrProfilingUtil.c | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler-rt/lib/profile/InstrProfilingUtil.c b/compiler-rt/lib/profile/InstrProfilingUtil.c index 343e836d049e..13301f341fc5 100644 --- a/compiler-rt/lib/profile/InstrProfilingUtil.c +++ b/compiler-rt/lib/profile/InstrProfilingUtil.c @@ -12,6 +12,7 @@ #include #include "WindowsMMap.h" #else +#include #include #include #include