aboutsummaryrefslogtreecommitdiffstats
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
commit66179b1fb5b6943166d4209182ce869e984cf388 (patch)
treed638d0955548959a0bce0b5b059925ff7c524349 /src/gtest-filepath.cc
parent321234377e38da6548721408d284ab4be08cb630 (diff)
downloadgoogletest-66179b1fb5b6943166d4209182ce869e984cf388.tar.gz
googletest-66179b1fb5b6943166d4209182ce869e984cf388.tar.bz2
googletest-66179b1fb5b6943166d4209182ce869e984cf388.zip
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.
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 fdb05629..fc4b7873 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