Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
$NetBSD: patch-src_system.cpp,v 1.1 2011/08/14 19:13:03 wiz Exp $
Fix build with gcc-4.5.
--- src/system.cpp.orig 2007-10-31 03:16:57.000000000 +0000
+++ src/system.cpp
@@ -548,8 +548,8 @@ System::realpath(const std::string& path
#endif
else
{
- char buf[PATH_MAX];
- if (getcwd(buf, PATH_MAX) == 0)
+ char buf[FILENAME_MAX];
+ if (getcwd(buf, FILENAME_MAX) == 0)
{
std::cout << "System::realpath: Error: couldn't getcwd()" << std::endl;
return pathname;