Google Test on gcc 4.3.*

src/gtest-filepath.cc: In static member function 'static testing::internal::FilePath testing::internal::FilePath::GetCurrentDir()':
src/gtest-filepath.cc:82: error: 'PATH_MAX' was not declared in this scope
src/gtest-filepath.cc:83: error: 'cwd' was not declared in this scope

こんなのがでてmakeできない。

http://code.google.com/p/googletest/issues/detail?id=41

--- gtest-1.1.0-orig/src/gtest-filepath.cc	2008-09-19 07:16:58.000000000 +1000
+++ gtest-1.1.0/src/gtest-filepath.cc	2008-10-08 21:46:28.000000000 +1100
@@ -32,7 +32,8 @@
 #include <gtest/internal/gtest-filepath.h>
 #include <gtest/internal/gtest-port.h>
 
-#include <stdlib.h>
+#include <cstdlib>
+#include <climits>
 
 #ifdef _WIN32_WCE
 #include <windows.h>

こうしてあげればOKの模様。