From 2060155945dcdf638499b0d95c1b938d5013c828 Mon Sep 17 00:00:00 2001 From: Memphiz Date: Wed, 8 Jun 2011 00:23:59 +0200 Subject: [PATCH 1/1] - make unsigned hyper overridable by cmdline by specifying -DU_INT64_PLATTFORM_TYPE to rpcgen --- nfs/nfs.x | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/nfs/nfs.x b/nfs/nfs.x index 58fc34e..abb4e46 100644 --- a/nfs/nfs.x +++ b/nfs/nfs.x @@ -7,7 +7,15 @@ const NFS3_COOKIEVERFSIZE = 8; typedef opaque cookieverf3[NFS3_COOKIEVERFSIZE]; -typedef unsigned hyper uint64; + +/*unsigned hyper can be overridden by giving rpcgen -DU_INT64_PLATTFORM_TYPE="foo" - for plattforms + where rpcgen doesn't know anything about hyper + default to unsigned hyper as of rfc 1813 */ +#ifndef U_INT64_PLATTFORM_TYPE +#define U_INT64_PLATTFORM_TYPE unsigned hyper +#endif/*U_INT64_PLATTFORM_TYPE*/ + +typedef U_INT64_PLATTFORM_TYPE uint64; typedef uint64 cookie3; struct nfs_fh3 { -- 2.34.1