diff options
author | clive <clive@FreeBSD.org> | 2004-12-18 16:48:28 +0800 |
---|---|---|
committer | clive <clive@FreeBSD.org> | 2004-12-18 16:48:28 +0800 |
commit | e2387c502ff6c7f078a942050737070fce2a8021 (patch) | |
tree | 8669ed38c1a539faccef8d12df3c2735965f495a /chinese | |
parent | 6904ba271b8ae4cdf8c26ea26263ccee53e1f50f (diff) | |
download | freebsd-ports-gnome-e2387c502ff6c7f078a942050737070fce2a8021.tar.gz freebsd-ports-gnome-e2387c502ff6c7f078a942050737070fce2a8021.tar.zst freebsd-ports-gnome-e2387c502ff6c7f078a942050737070fce2a8021.zip |
Fix build on FreeBSD 4.x.
PR: ports/75183
Submitted by: MAINTAINER
Diffstat (limited to 'chinese')
-rw-r--r-- | chinese/qterm/files/patch-qterm_qtermcanvas.cpp | 11 | ||||
-rw-r--r-- | chinese/qterm/files/patch-qterm_qtermiplocation.cpp | 14 |
2 files changed, 23 insertions, 2 deletions
diff --git a/chinese/qterm/files/patch-qterm_qtermcanvas.cpp b/chinese/qterm/files/patch-qterm_qtermcanvas.cpp new file mode 100644 index 000000000000..0c9ac95396f1 --- /dev/null +++ b/chinese/qterm/files/patch-qterm_qtermcanvas.cpp @@ -0,0 +1,11 @@ +--- qterm/qtermcanvas.cpp.orig Fri Dec 17 19:26:35 2004 ++++ qterm/qtermcanvas.cpp Fri Dec 17 19:26:39 2004 +@@ -238,7 +238,7 @@ + if(strSave.isEmpty()) + return; + QString fmt = fi.extension(false).upper(); +- if(!pxm.save(strSave, fmt=="JPG"?"JPEG":fmt)) ++ if(!pxm.save(strSave, fmt=="JPG"?QString("JPEG"):fmt)) + QMessageBox::warning(this, "Failed to save file", "Cant save file, maybe format not supported"); + } + diff --git a/chinese/qterm/files/patch-qterm_qtermiplocation.cpp b/chinese/qterm/files/patch-qterm_qtermiplocation.cpp index 8b98e0d9e56a..bce5d4e6ffe6 100644 --- a/chinese/qterm/files/patch-qterm_qtermiplocation.cpp +++ b/chinese/qterm/files/patch-qterm_qtermiplocation.cpp @@ -1,5 +1,15 @@ ---- qterm/qtermiplocation.cpp.orig Tue Dec 14 18:45:37 2004 -+++ qterm/qtermiplocation.cpp Tue Dec 14 18:46:21 2004 +--- qterm/qtermiplocation.cpp.orig Tue Dec 7 03:23:24 2004 ++++ qterm/qtermiplocation.cpp Fri Dec 17 19:24:22 2004 +@@ -9,8 +9,8 @@ + #ifdef Q_OS_WIN32 + #include <winsock2.h> + #else +-#include <netinet/in.h> + #include <arpa/inet.h> ++#include <netinet/in.h> + #endif + + #include <qstring.h> @@ -79,13 +79,13 @@ if( fseek( fp, (long)offset, SEEK_SET ) ==-1 ) { |