Import devel/llvm50 version 5.0.0_1
[dports.git] / www / chromium / files / patch-testing_gtest_src_gtest.cc
1 --- testing/gtest/src/gtest.cc.orig     2016-05-11 19:03:10 UTC
2 +++ testing/gtest/src/gtest.cc
3 @@ -122,6 +122,10 @@
4  
5  #endif  // GTEST_OS_LINUX
6  
7 +#if GTEST_OS_FREEBSD
8 +# include <sys/socket.h>
9 +#endif
10 +
11  #if GTEST_HAS_EXCEPTIONS
12  # include <stdexcept>
13  #endif
14 @@ -1930,7 +1934,7 @@ bool String::CaseInsensitiveWideCStringE
15  
16  #if GTEST_OS_WINDOWS
17    return _wcsicmp(lhs, rhs) == 0;
18 -#elif GTEST_OS_LINUX && !GTEST_OS_LINUX_ANDROID
19 +#elif GTEST_OS_LINUX && !GTEST_OS_LINUX_ANDROID && !GTEST_OS_FREEBSD
20    return wcscasecmp(lhs, rhs) == 0;
21  #else
22    // Android, Mac OS X and Cygwin don't define wcscasecmp.