Include sys/types.h portability header in Enumerate
authorChristopher Dykes <cdykes@fb.com>
Tue, 26 Jul 2016 15:36:28 +0000 (08:36 -0700)
committerFacebook Github Bot 3 <facebook-github-bot-3-bot@fb.com>
Tue, 26 Jul 2016 15:38:39 +0000 (08:38 -0700)
Summary: Because it's using `ssize_t`, which MSVC defines weirdly.

Reviewed By: yfeldblum

Differential Revision: D3614050

fbshipit-source-id: 422621ea0dc92b374fa6dfc32a5391c1093d039e

folly/Enumerate.h

index 7d4ae4d03b99763ec26f4e80f0045e46b4a1435c..2a2ce2201f79726b67a6958ac8b6d71602946c53 100644 (file)
@@ -19,6 +19,8 @@
 #include <iterator>
 #include <memory>
 
+#include <folly/portability/SysTypes.h>
+
 /*
  * Similar to Python's enumerate(), folly::enumerate() can be used to
  * iterate a range with a for-range loop, and it also allows to