summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lang/qu-prolog/files/qu-prolog-8.0-gcc4.patch')
-rw-r--r--dev-lang/qu-prolog/files/qu-prolog-8.0-gcc4.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-lang/qu-prolog/files/qu-prolog-8.0-gcc4.patch b/dev-lang/qu-prolog/files/qu-prolog-8.0-gcc4.patch
new file mode 100644
index 000000000000..11bfc037b772
--- /dev/null
+++ b/dev-lang/qu-prolog/files/qu-prolog-8.0-gcc4.patch
@@ -0,0 +1,35 @@
+diff -ur qp8.0.orig/src/xqp/interact.h qp8.0/src/xqp/interact.h
+--- qp8.0.orig/src/xqp/interact.h 2007-03-02 13:25:06.000000000 +1300
++++ qp8.0/src/xqp/interact.h 2007-07-21 19:01:26.000000000 +1200
+@@ -27,7 +27,7 @@
+ #include <QMouseEvent>
+ #include <QKeyEvent>
+ #include <Q3PtrList>
+-#include <fstream.h>
++#include <fstream>
+ #include <q3accel.h>
+ #include <qregexp.h>
+ #include <qsocketnotifier.h>
+diff -ur qp8.0.orig/src/xqp/main.cc qp8.0/src/xqp/main.cc
+--- qp8.0.orig/src/xqp/main.cc 2006-04-06 16:01:45.000000000 +1200
++++ qp8.0/src/xqp/main.cc 2007-07-21 19:02:01.000000000 +1200
+@@ -19,9 +19,9 @@
+
+ #include <stdlib.h>
+ #include <stdio.h>
+-#include <iostream.h>
++#include <iostream>
+ #include <unistd.h>
+-#include <fstream.h>
++#include <fstream>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
+@@ -30,6 +30,7 @@
+
+ #include "xqp.h"
+
++using namespace std;
+
+ // Create 2 sockets for unidirectional communication to and from qp
+ int socket_main_to_qp[2], socket_qp_to_main[2];