Include <strings.h> in portability/String.h
authorAndrew Krieger <andrew.krieger@oculus.com>
Wed, 19 Apr 2017 01:01:23 +0000 (18:01 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 19 Apr 2017 01:09:08 +0000 (18:09 -0700)
Summary:
portabilty/String.h defines functions for Windows which
are provided by <strings.h> on other platforms, but doesn't include
<strings.h> in that case.

Reviewed By: Orvid

Differential Revision: D4908770

fbshipit-source-id: b3326f78509c2aa1acb9c9279f01537b0a243400

folly/portability/String.h

index c1b35d46a522ad087d8ab6637db1d922b11b7ce9..fc7e85a35c0879a713a4713a6f49314bf49d09cf 100755 (executable)
 
 #include <folly/portability/Config.h>
 
+#if !defined(_WIN32)
+#include <strings.h>
+#endif
+
 #if !FOLLY_HAVE_MEMRCHR
 extern "C" void* memrchr(const void* s, int c, size_t n);
 #endif