From dc5b343342101953499fe887c24935e9688cf4cf Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Wed, 1 Jul 2015 09:00:48 -0700 Subject: [PATCH] Add missing include for flock() Summary: flock() expects sys/file.h which on many platforms is getting included as a side-effect, but on at least one this isn't the case. Add the explicit include to fix builds on those platforms. Closes #232 Facebook Unrelated runtime failures. Reviewed By: @JoelMarcey Differential Revision: D2196306 --- folly/File.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/folly/File.cpp b/folly/File.cpp index 379efe62..253d0054 100644 --- a/folly/File.cpp +++ b/folly/File.cpp @@ -18,6 +18,7 @@ #include #include +#include #include #include -- 2.34.1