Skip to content

Commit 98f800d

Browse files
committed
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
1 parent ac3851c commit 98f800d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler-rt/lib/profile/InstrProfilingUtil.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <windows.h>
1313
#include "WindowsMMap.h"
1414
#else
15+
#include <sys/file.h>
1516
#include <sys/stat.h>
1617
#include <sys/types.h>
1718
#include <unistd.h>

0 commit comments

Comments
 (0)