- make unsigned hyper overridable by cmdline by specifying -DU_INT64_PLATTFORM_TYPE...
authorMemphiz <memphis@machzwo.de>
Tue, 7 Jun 2011 22:23:59 +0000 (00:23 +0200)
committerMemphiz <memphis@machzwo.de>
Tue, 7 Jun 2011 22:23:59 +0000 (00:23 +0200)
nfs/nfs.x

index 58fc34e6a8452ee836dd39345d42fe8af6ca4477..abb4e461779f9edf89c2e93b259866287d90a079 100644 (file)
--- 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 {