From: Sara Golemon Date: Wed, 1 Jul 2015 16:00:48 +0000 (-0700) Subject: Add missing include for flock() X-Git-Tag: v0.49.0~19 X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=commitdiff_plain;h=dc5b343342101953499fe887c24935e9688cf4cf 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 --- 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