1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

Older Linux installations do not have svcfd_create().

svcfd_create() is only called if OPT_UNIX_SOCKET_RPC is defined, so a #ifdef
round that code should be OK.
This commit is contained in:
James Woodcock 2012-09-06 20:24:13 +01:00 committed by Jon Trulson
parent 406fa95994
commit 44e384aedb

View file

@ -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);
}