summaryrefslogtreecommitdiff
path: root/editors/fxite/files/patch-jef_interproc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editors/fxite/files/patch-jef_interproc.cpp')
-rw-r--r--editors/fxite/files/patch-jef_interproc.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/editors/fxite/files/patch-jef_interproc.cpp b/editors/fxite/files/patch-jef_interproc.cpp
new file mode 100644
index 000000000000..58eff0c0be65
--- /dev/null
+++ b/editors/fxite/files/patch-jef_interproc.cpp
@@ -0,0 +1,31 @@
+--- jef/interproc.cpp.orig 2013-10-03 09:22:51 UTC
++++ jef/interproc.cpp
+@@ -323,7 +323,19 @@ static int SocketFailure(const char*func)
+ }
+
+
++#if (FOX_MINOR>6)
++# if (FOX_MAJOR>1) || (FOX_MINOR>7) || (FOX_LEVEL>49)
++# define FOX_1_7_50_OR_NEWER
++# endif
++#endif
+
++#ifdef FOX_1_7_50_OR_NEWER
++# define LookupInHash(d,k) ((d)->at(k))
++#else
++# define LookupInHash(d,k) ((d)->find(k))
++#endif
++
++
+ long InterProc::onSocketRead(FXObject*o,FXSelector sel,void*p)
+ {
+ switch (FXSELID(sel)) {
+@@ -344,7 +356,7 @@ long InterProc::onSocketRead(FXObject*o,FXSelector sel
+ ssize_t len=0;
+ char buf[bufsize];
+ int read_fd=(FXival)p;
+- FXString*s=(FXString*)connlist->find(p);
++ FXString*s=(FXString*)LookupInHash(connlist,p);
+ do {
+ len=read(read_fd,buf,bufsize);
+ if (len>0) { s->append(buf, len); }