Author: Tom Jampen <tom@cryptography.ch>
Description: Fix build failure with gcc 4.7.

diff -Naurp a/qcodeedit/lib/document/qdocumentcommand.cpp b/qcodeedit/lib/document/qdocumentcommand.cpp
--- a/qcodeedit/lib/document/qdocumentcommand.cpp	2012-05-20 10:14:15.223815331 +0200
+++ b/qcodeedit/lib/document/qdocumentcommand.cpp	2012-05-20 10:15:13.199747104 +0200
@@ -13,6 +13,7 @@
 **
 ****************************************************************************/
 
+#include <stdint.h>
 #include "qdocumentcommand.h"
 
 /*!
diff -Naurp a/qtsingleapplication/qtlocalpeer.cpp b/qtsingleapplication/qtlocalpeer.cpp
--- a/qtsingleapplication/qtlocalpeer.cpp	2012-05-19 23:16:28.382388508 +0200
+++ b/qtsingleapplication/qtlocalpeer.cpp	2012-05-19 23:21:07.834836559 +0200
@@ -46,6 +46,7 @@
 
 
 #include "qtlocalpeer.h"
+#include <unistd.h>
 #include <QtCore/QCoreApplication>
 #include <QtCore/QTime>
 #if QT_VERSION >= 0x040600
diff -Naurp a/tests/qsearchreplacepanel_t.cpp b/tests/qsearchreplacepanel_t.cpp
--- a/tests/qsearchreplacepanel_t.cpp	2012-05-20 10:24:38.879195332 +0200
+++ b/tests/qsearchreplacepanel_t.cpp	2012-05-20 10:25:16.543165551 +0200
@@ -213,9 +213,9 @@ void QSearchReplacePanelTest::incrementa
 				widget->cFind->lineEdit()->cursorForward(false,search.length());	
 				QTest::keyClick(widget->cFind->lineEdit(),search[search.length()-1].toLatin1());
 			}
-			QDocumentCursor s=ed->cursor().selectionStart();
-			QEQUAL2(s.lineNumber(), cy, search+" "+ed->cursor().selectedText()+"  "+QString::number(loop));
-			QEQUAL2(s.columnNumber(), cx, search+" "+ed->cursor().selectedText());
+			QDocumentCursor c=ed->cursor().selectionStart();
+			QEQUAL2(c.lineNumber(), cy, search+" "+ed->cursor().selectedText()+"  "+QString::number(loop));
+			QEQUAL2(c.columnNumber(), cx, search+" "+ed->cursor().selectedText());
 			QEQUAL2(ed->cursor().selectedText(), res, search+" "+ed->cursor().selectedText());
 			//searching shouldn't change highlighted selection
 			QCEMULTIEQUAL(getHighlightedSelection(ed), panel->getSearchScope(), ed->document()->cursor(scopey1,scopex1,scopey2,scopex2));			
