diff options
-rw-r--r-- | devel/nsis/distinfo | 3 | ||||
-rw-r--r-- | devel/nsis/patches/patch-Source_util.cpp | 21 |
2 files changed, 23 insertions, 1 deletions
diff --git a/devel/nsis/distinfo b/devel/nsis/distinfo index f2756018c6d..6ba45fae091 100644 --- a/devel/nsis/distinfo +++ b/devel/nsis/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.1.1.1 2005/12/29 15:47:44 cube Exp $ +$NetBSD: distinfo,v 1.2 2011/11/25 21:49:17 joerg Exp $ SHA1 (nsis-2.12.zip) = 88de1b3ea6559209f9bf6f76e0e5708978c0ae0e RMD160 (nsis-2.12.zip) = 71bf8ec3654be1cfe38e36dd6795f3608cbcea7c @@ -6,3 +6,4 @@ Size (nsis-2.12.zip) = 1953720 bytes SHA1 (nsis-2.12-src.tar.bz2) = a458bdcbda37ecf29f0ddd8c10d36c1ed4acd763 RMD160 (nsis-2.12-src.tar.bz2) = bc3edf7d702c9ccef1b225cf30897f1eb031d78c Size (nsis-2.12-src.tar.bz2) = 1564803 bytes +SHA1 (patch-Source_util.cpp) = dc112fc88ce54b0bb992ea34f4d9cd57ef6baf1b diff --git a/devel/nsis/patches/patch-Source_util.cpp b/devel/nsis/patches/patch-Source_util.cpp new file mode 100644 index 00000000000..2f7e248a698 --- /dev/null +++ b/devel/nsis/patches/patch-Source_util.cpp @@ -0,0 +1,21 @@ +$NetBSD: patch-Source_util.cpp,v 1.1 2011/11/25 21:49:17 joerg Exp $ + +--- Source/util.cpp.orig 2011-11-25 20:21:46.000000000 +0000 ++++ Source/util.cpp +@@ -595,7 +595,7 @@ string get_full_path(const string &path) + #ifdef PATH_MAX
+ static char buffer[PATH_MAX];
+ #else//PATH_MAX
+- int path_max = pathconf(path, _PC_PATH_MAX);
++ int path_max = pathconf(path.c_str(), _PC_PATH_MAX);
+ if (path_max <= 0)
+ path_max = 4096;
+ char *buffer = (char *) malloc(path_max);
+@@ -656,6 +656,6 @@ string remove_file_extension(const strin +
+ string lowercase(const string &str) {
+ string result = str;
+- transform(str.begin(), str.end(), result.begin(), tolower);
++ transform(str.begin(), str.end(), result.begin(), (int(*)(int))tolower);
+ return result;
+ }
|