diff options
author | clive <clive@FreeBSD.org> | 2004-12-18 08:48:28 +0000 |
---|---|---|
committer | clive <clive@FreeBSD.org> | 2004-12-18 08:48:28 +0000 |
commit | e2387c502ff6c7f078a942050737070fce2a8021 (patch) | |
tree | 8669ed38c1a539faccef8d12df3c2735965f495a | |
parent | 6904ba271b8ae4cdf8c26ea26263ccee53e1f50f (diff) | |
download | FreeBSD-ports-e2387c502ff6c7f078a942050737070fce2a8021.zip FreeBSD-ports-e2387c502ff6c7f078a942050737070fce2a8021.tar.gz |
Fix build on FreeBSD 4.x.
PR: ports/75183
Submitted by: MAINTAINER
-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 0000000..0c9ac95 --- /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 8b98e0d..bce5d4e 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 ) { |