summaryrefslogtreecommitdiff
path: root/src/gtest-filepath.cc
diff options
context:
space:
mode:
authorchandlerc <chandlerc@861a406c-534a-0410-8894-cb66d6ee9925>2008-10-21 05:05:14 +0000
committerchandlerc <chandlerc@861a406c-534a-0410-8894-cb66d6ee9925>2008-10-21 05:05:14 +0000
commit6e9c49e9fa4e475b7590e20cf6afb57d8bd14a03 (patch)
treed638d0955548959a0bce0b5b059925ff7c524349 /src/gtest-filepath.cc
parent18f3d5e5cf0c2f5f5b1ee92290da1d8bdc983ffa (diff)
downloadgtest-6e9c49e9fa4e475b7590e20cf6afb57d8bd14a03.tar.gz
gtest-6e9c49e9fa4e475b7590e20cf6afb57d8bd14a03.tar.bz2
gtest-6e9c49e9fa4e475b7590e20cf6afb57d8bd14a03.tar.xz
On some Linux distros, you need to explicitly #include <limits.h> to get
the definition of PATH_MAX. This patch adds it in the appropriate place. git-svn-id: http://googletest.googlecode.com/svn/trunk@108 861a406c-534a-0410-8894-cb66d6ee9925
Diffstat (limited to 'src/gtest-filepath.cc')
-rw-r--r--src/gtest-filepath.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gtest-filepath.cc b/src/gtest-filepath.cc
index fdb0562..fc4b787 100644
--- a/src/gtest-filepath.cc
+++ b/src/gtest-filepath.cc
@@ -45,6 +45,7 @@
#include <sys/syslimits.h>
#include <unistd.h>
#else
+#include <limits.h>
#include <sys/stat.h>
#include <unistd.h>
#endif // _WIN32_WCE or _WIN32