summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2016-03-25 00:39:01 +0000
committerpfg <pfg@FreeBSD.org>2016-03-25 00:39:01 +0000
commitab79d36b06afce3983bb7a738737c9163fac1a01 (patch)
tree69b438e96105e1741db318761004b7db1a30ef15 /include
parenteeaebf709773790b28a42a2f0fc59b8b552e178f (diff)
downloadFreeBSD-src-ab79d36b06afce3983bb7a738737c9163fac1a01.zip
FreeBSD-src-ab79d36b06afce3983bb7a738737c9163fac1a01.tar.gz
MFC r296394:
xdr: Fix xdr_rpc* defines. The defines for xdr_rpc* in xdr.h are wrong. It could be very well that Solaris did strip the '_t' from xdr_u_int32_t, but Solaris has a xdr_u_int32 function, we don't have this. So all of this defines will lead to an unresolved symbol. This explains why we do not use these functions in FreeBSD while they are used in Illumos/Solaris. Obtained from: linux libtirpc (git 7864122e61ffe4db1aa8ace89117358a1e3a391b)
Diffstat (limited to 'include')
-rw-r--r--include/rpc/xdr.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/include/rpc/xdr.h b/include/rpc/xdr.h
index 9456f70..93f1ee4 100644
--- a/include/rpc/xdr.h
+++ b/include/rpc/xdr.h
@@ -219,15 +219,11 @@ xdr_putint32(XDR *xdrs, int32_t *ip)
(*(xdrs)->x_ops->x_control)(xdrs, req, op)
#define xdr_control(xdrs, req, op) XDR_CONTROL(xdrs, req, op)
-/*
- * Solaris strips the '_t' from these types -- not sure why.
- * But, let's be compatible.
- */
-#define xdr_rpcvers(xdrs, versp) xdr_u_int32(xdrs, versp)
-#define xdr_rpcprog(xdrs, progp) xdr_u_int32(xdrs, progp)
-#define xdr_rpcproc(xdrs, procp) xdr_u_int32(xdrs, procp)
-#define xdr_rpcprot(xdrs, protp) xdr_u_int32(xdrs, protp)
-#define xdr_rpcport(xdrs, portp) xdr_u_int32(xdrs, portp)
+#define xdr_rpcvers(xdrs, versp) xdr_u_int32_t(xdrs, versp)
+#define xdr_rpcprog(xdrs, progp) xdr_u_int32_t(xdrs, progp)
+#define xdr_rpcproc(xdrs, procp) xdr_u_int32_t(xdrs, procp)
+#define xdr_rpcprot(xdrs, protp) xdr_u_int32_t(xdrs, protp)
+#define xdr_rpcport(xdrs, portp) xdr_u_int32_t(xdrs, portp)
/*
* Support struct for discriminated unions.
OpenPOWER on IntegriCloud