Fix for broken net-im/libjingle

Hiroshi Nishida nishidafmly at aol.com
Thu Jul 5 22:51:12 UTC 2012


Hi,

net-im/libjingle is now marked as BROKEN for non i386 systems.
The attached file is a patch for fixing it.
The compilation error with the original source code is caused by "size_t 
!= unsigned int" (on non i386).
So, just casting a parameter works.

Bye

--
Hiroshi Nishida, PhD
nishida at asusa.net
-------------- next part --------------
--- talk/session/fileshare/fileshare.cc.orig	2012-07-05 15:29:12.000000000 -0700
+++ talk/session/fileshare/fileshare.cc	2012-07-05 15:45:43.000000000 -0700
@@ -670,8 +670,8 @@
         && !query.empty()
         && (sscanf(query.c_str(), "width=%u&height=%u",
                    &width, &height) == 2)) {
-      width = talk_base::_max<unsigned int>(1, talk_base::_min(width, kMaxPreviewSize));
-      height = talk_base::_max<unsigned int>(1, talk_base::_min(height, kMaxPreviewSize));
+      width = talk_base::_max<unsigned int>(1, talk_base::_min((size_t)width, kMaxPreviewSize));
+      height = talk_base::_max<unsigned int>(1, talk_base::_min((size_t)height, kMaxPreviewSize));
       std::string pathname;
       if (is_sender_) {
         talk_base::Pathname local_path;


More information about the freebsd-ports mailing list