Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
gtest patch for FreeBSD.
Browse files Browse the repository at this point in the history
  • Loading branch information
benlaurie committed Oct 23, 2014
1 parent 31e259e commit adb2ad7
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions gtest.patch
@@ -0,0 +1,22 @@
Index: include/gtest/internal/gtest-port.h
===================================================================
--- include/gtest/internal/gtest-port.h (revision 692)
+++ include/gtest/internal/gtest-port.h (working copy)
@@ -345,6 +345,8 @@
# define GTEST_OS_OPENBSD 1
#elif defined __QNX__
# define GTEST_OS_QNX 1
+#elif defined __FreeBSD__
+# define GTEST_OS_FREEBSD 1
#endif // __CYGWIN__

// Macros for disabling Microsoft Visual C++ warnings.
@@ -791,7 +793,7 @@
(GTEST_OS_MAC && !GTEST_OS_IOS) || GTEST_OS_IOS_SIMULATOR || \
(GTEST_OS_WINDOWS_DESKTOP && _MSC_VER >= 1400) || \
GTEST_OS_WINDOWS_MINGW || GTEST_OS_AIX || GTEST_OS_HPUX || \
- GTEST_OS_OPENBSD || GTEST_OS_QNX)
+ GTEST_OS_OPENBSD || GTEST_OS_QNX || GTEST_OS_FREEBSD)
# define GTEST_HAS_DEATH_TEST 1
# include <vector> // NOLINT
#endif

0 comments on commit adb2ad7

Please sign in to comment.