Include the sys/types.h portability header
authorChristopher Dykes <cdykes@fb.com>
Fri, 22 Jul 2016 17:14:15 +0000 (10:14 -0700)
committerFacebook Github Bot 1 <facebook-github-bot-1-bot@fb.com>
Fri, 22 Jul 2016 17:23:50 +0000 (10:23 -0700)
Summary: As the comment in the file says, this has to be included in a weird order due to issues on Windows.

Reviewed By: yfeldblum

Differential Revision: D3601008

fbshipit-source-id: fca4b6d906eb0d1f001c28197987165cd075752d

folly/test/DeterministicSchedule.h

index c6a1aeb21c47be5cb855d2227e28d3b4e1e47d9a..762d337fb0dbf5bcc3117c297d339a71d4f95ec7 100644 (file)
 
 #pragma once
 
+// This needs to be above semaphore.h due to the windows
+// libevent implementation needing mode_t to be defined,
+// but defining it differently than our portability
+// headers do.
+#include <folly/portability/SysTypes.h>
+
 #include <assert.h>
 #include <boost/noncopyable.hpp>
 #include <errno.h>