blob: cbdab15180cab375f8681c31bd9eadbb7bf0047b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--- testing/gtest/src/gtest.cc.orig 2014-10-10 09:15:35 UTC
+++ testing/gtest/src/gtest.cc
@@ -121,6 +121,10 @@
#endif // GTEST_OS_LINUX
+#if GTEST_OS_FREEBSD
+# include <sys/socket.h>
+#endif
+
#if GTEST_HAS_EXCEPTIONS
# include <stdexcept>
#endif
@@ -1891,7 +1895,7 @@
#if GTEST_OS_WINDOWS
return _wcsicmp(lhs, rhs) == 0;
-#elif GTEST_OS_LINUX && !GTEST_OS_LINUX_ANDROID
+#elif GTEST_OS_LINUX && !GTEST_OS_LINUX_ANDROID && !GTEST_OS_FREEBSD
return wcscasecmp(lhs, rhs) == 0;
#else
// Android, Mac OS X and Cygwin don't define wcscasecmp.
|