diff options
author | pfg <pfg@FreeBSD.org> | 2016-03-03 14:44:30 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-03-03 14:44:30 +0000 |
commit | d07921367dd8e13c037be8174eb6f775a10f6beb (patch) | |
tree | b3cd9e2b661d618bbc2b5d7ede90bf2052ff9f4a /include | |
parent | 9b6c24e7cf665f854e692b5803db1f5af1b363d7 (diff) | |
download | FreeBSD-src-d07921367dd8e13c037be8174eb6f775a10f6beb.zip FreeBSD-src-d07921367dd8e13c037be8174eb6f775a10f6beb.tar.gz |
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)
Diffstat (limited to 'include')
-rw-r--r-- | include/rpc/svc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/rpc/svc.h b/include/rpc/svc.h index f5652fc..53b1815 100644 --- a/include/rpc/svc.h +++ b/include/rpc/svc.h @@ -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 */ |