From: Memphiz Date: Tue, 7 Jun 2011 22:23:59 +0000 (+0200) Subject: - make unsigned hyper overridable by cmdline by specifying -DU_INT64_PLATTFORM_TYPE... X-Git-Tag: upstream/1.9.6^2~405^2~1 X-Git-Url: https://git.piment-noir.org/?p=deb_libnfs.git;a=commitdiff_plain;h=2060155945dcdf638499b0d95c1b938d5013c828 - make unsigned hyper overridable by cmdline by specifying -DU_INT64_PLATTFORM_TYPE to rpcgen --- 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 {