Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Mar 2016 14:44:31 +0000 (UTC)
From:      "Pedro F. Giffuni" <pfg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r296349 - head/include/rpc
Message-ID:  <201603031444.u23EiVcd076303@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pfg
Date: Thu Mar  3 14:44:30 2016
New Revision: 296349
URL: https://svnweb.freebsd.org/changeset/base/296349

Log:
  Add sunrpc compat define for xp_sock.
  
  SunRPC is using xp_sock in SVCXPRT, while TI-RPC is using
  xp_fd. Add a compatibility define.
  
  Illumos has something similar for the non-kernel case.
  
  Obtained from: linux-nfs project (git 0d94036c3a0d4c24d22bf6a8c40ac6625d972c29)

Modified:
  head/include/rpc/svc.h

Modified: head/include/rpc/svc.h
==============================================================================
--- head/include/rpc/svc.h	Thu Mar  3 13:07:59 2016	(r296348)
+++ head/include/rpc/svc.h	Thu Mar  3 14:44:30 2016	(r296349)
@@ -89,6 +89,7 @@ enum xprt_stat {
  */
 typedef struct __rpc_svcxprt {
 	int		xp_fd;
+#define	xp_sock		xp_fd
 	u_short		xp_port;	 /* associated port number */
 	const struct xp_ops {
 	    /* receive incoming requests */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603031444.u23EiVcd076303>