diff options
author | 2008-12-09 19:40:10 +0000 | |
---|---|---|
committer | 2008-12-09 19:40:10 +0000 | |
commit | ee1a9978f99ee19b52f0b884242639f6218ec721 (patch) | |
tree | 9d93105381eb4893a4d61744355e570823f98afc /lib/libc/rpc/xdr_mem.c | |
parent | fix inet_ntop(3) prototype; ok millert@ libc to be bumbed very soon (diff) | |
download | wireguard-openbsd-ee1a9978f99ee19b52f0b884242639f6218ec721.tar.xz wireguard-openbsd-ee1a9978f99ee19b52f0b884242639f6218ec721.zip |
Commit requested by marco:
Add nonblock support for xdrrecs
ok millert blambert & otto; from NetBSD. libc bump to follow soon.
Diffstat (limited to 'lib/libc/rpc/xdr_mem.c')
-rw-r--r-- | lib/libc/rpc/xdr_mem.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/libc/rpc/xdr_mem.c b/lib/libc/rpc/xdr_mem.c index adcd3ee410f..39118e8fb6d 100644 --- a/lib/libc/rpc/xdr_mem.c +++ b/lib/libc/rpc/xdr_mem.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xdr_mem.c,v 1.13 2006/03/31 18:28:55 deraadt Exp $ */ +/* $OpenBSD: xdr_mem.c,v 1.14 2008/12/09 19:40:10 otto Exp $ */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for * unrestricted use provided that this legend is included on all tape @@ -39,11 +39,12 @@ * */ +#include <sys/types.h> +#include <netinet/in.h> #include <string.h> #include <rpc/types.h> #include <rpc/xdr.h> -#include <netinet/in.h> static bool_t xdrmem_getlong_aligned(XDR *, long *); static bool_t xdrmem_putlong_aligned(XDR *, long *); @@ -65,7 +66,8 @@ static struct xdr_ops xdrmem_ops_aligned = { xdrmem_getpos, xdrmem_setpos, xdrmem_inline_aligned, - xdrmem_destroy + xdrmem_destroy, + NULL, /* xdrmem_control */ }; static struct xdr_ops xdrmem_ops_unaligned = { @@ -76,7 +78,8 @@ static struct xdr_ops xdrmem_ops_unaligned = { xdrmem_getpos, xdrmem_setpos, xdrmem_inline_unaligned, - xdrmem_destroy + xdrmem_destroy, + NULL, /* xdrmem_control */ }; /* |