Path: blob/main/editors/fxite/files/patch-jef_interproc.cpp
16461 views
--- jef/interproc.cpp.orig 2013-10-03 09:22:51 UTC1+++ jef/interproc.cpp2@@ -323,7 +323,19 @@ static int SocketFailure(const char*func)3}456+#if (FOX_MINOR>6)7+# if (FOX_MAJOR>1) || (FOX_MINOR>7) || (FOX_LEVEL>49)8+# define FOX_1_7_50_OR_NEWER9+# endif10+#endif1112+#ifdef FOX_1_7_50_OR_NEWER13+# define LookupInHash(d,k) ((d)->at(k))14+#else15+# define LookupInHash(d,k) ((d)->find(k))16+#endif17+18+19long InterProc::onSocketRead(FXObject*o,FXSelector sel,void*p)20{21switch (FXSELID(sel)) {22@@ -344,7 +356,7 @@ long InterProc::onSocketRead(FXObject*o,FXSelector sel23ssize_t len=0;24char buf[bufsize];25int read_fd=(FXival)p;26- FXString*s=(FXString*)connlist->find(p);27+ FXString*s=(FXString*)LookupInHash(connlist,p);28do {29len=read(read_fd,buf,bufsize);30if (len>0) { s->append(buf, len); }313233