Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/editors/fxite/files/patch-jef_interproc.cpp
16461 views
1
--- jef/interproc.cpp.orig 2013-10-03 09:22:51 UTC
2
+++ jef/interproc.cpp
3
@@ -323,7 +323,19 @@ static int SocketFailure(const char*func)
4
}
5
6
7
+#if (FOX_MINOR>6)
8
+# if (FOX_MAJOR>1) || (FOX_MINOR>7) || (FOX_LEVEL>49)
9
+# define FOX_1_7_50_OR_NEWER
10
+# endif
11
+#endif
12
13
+#ifdef FOX_1_7_50_OR_NEWER
14
+# define LookupInHash(d,k) ((d)->at(k))
15
+#else
16
+# define LookupInHash(d,k) ((d)->find(k))
17
+#endif
18
+
19
+
20
long InterProc::onSocketRead(FXObject*o,FXSelector sel,void*p)
21
{
22
switch (FXSELID(sel)) {
23
@@ -344,7 +356,7 @@ long InterProc::onSocketRead(FXObject*o,FXSelector sel
24
ssize_t len=0;
25
char buf[bufsize];
26
int read_fd=(FXival)p;
27
- FXString*s=(FXString*)connlist->find(p);
28
+ FXString*s=(FXString*)LookupInHash(connlist,p);
29
do {
30
len=read(read_fd,buf,bufsize);
31
if (len>0) { s->append(buf, len); }
32
33