projects
/
oweals
/
cde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
406fa95
)
Older Linux installations do not have svcfd_create().
author
James Woodcock
<james_woodcock@yahoo.co.uk>
Thu, 6 Sep 2012 19:24:13 +0000
(20:24 +0100)
committer
Jon Trulson
<jon@radscan.com>
Fri, 28 Sep 2012 00:01:19 +0000
(18:01 -0600)
svcfd_create() is only called if OPT_UNIX_SOCKET_RPC is defined, so a #ifdef
round that code should be OK.
cde/lib/tt/slib/mp_rpc_server.C
patch
|
blob
|
history
diff --git
a/cde/lib/tt/slib/mp_rpc_server.C
b/cde/lib/tt/slib/mp_rpc_server.C
index 1ed95468c9600718eaf451d91672bd0389024ee3..881d7050e720621816f50ae904ebd979ee48a0af 100644
(file)
--- a/
cde/lib/tt/slib/mp_rpc_server.C
+++ b/
cde/lib/tt/slib/mp_rpc_server.C
@@
-120,6
+120,7
@@
init(void (*service_fn)(struct svc_req *, SVCXPRT *))
unsigned int buffersize = (bufopt != (char *)0) ? atoi(bufopt) : 32000;
if (_socket != RPC_ANYSOCK) {
+#ifdef OPT_UNIX_SOCKET_RPC
_transp = svcfd_create(_socket, buffersize, buffersize);
if (_transp == (SVCXPRT *)0) {
return(0);
@@
-130,6
+131,7
@@
init(void (*service_fn)(struct svc_req *, SVCXPRT *))
_tt_syslog(0, LOG_ERR, "svc_register(): %m");
return(0);
}
+#endif
return(1);
}