Include the Time.h portability header where needed
authorChristopher Dykes <cdykes@fb.com>
Sat, 29 Oct 2016 00:20:16 +0000 (17:20 -0700)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Sat, 29 Oct 2016 00:23:30 +0000 (17:23 -0700)
Summary: In this case, the SpookyHash tests, which call `clock_gettime`.

Reviewed By: yfeldblum

Differential Revision: D4098997

fbshipit-source-id: e402fd6626e59ccc555513384e93ef0ef891bbf3

folly/test/SpookyHashV1Test.cpp
folly/test/SpookyHashV2Test.cpp

index 9b78bda33c11c9ab1162fbfcdbc53772b51517c6..9a63e1270f7b928de34387a8117d65ce5a4b91d3 100644 (file)
 
 #include <folly/SpookyHashV1.h>
 #include <folly/portability/GTest.h>
+#include <folly/portability/Time.h>
 
 #include <cinttypes>
 #include <cstdio>
 #include <cstddef>
 #include <cstring>
 #include <cstdlib>
-#include <ctime>
 
 #include <glog/logging.h>
 
index 26a0c8a6ee37d62c19e38d9cfc2b2dee442a9969..1742ac3b7f0086e1d6370b211db4347109c41108 100644 (file)
 
 #include <folly/SpookyHashV2.h>
 #include <folly/portability/GTest.h>
+#include <folly/portability/Time.h>
 
 #include <cinttypes>
 #include <cstdio>
 #include <cstddef>
 #include <cstring>
 #include <cstdlib>
-#include <ctime>
 
 #include <glog/logging.h>