tt_xdr_utils.h: fix build error on linux/bsd introduced with illumos initial patch.
authorJon Trulson <jon@radscan.com>
Sat, 22 Mar 2014 22:54:24 +0000 (16:54 -0600)
committerJon Trulson <jon@radscan.com>
Sat, 22 Mar 2014 22:54:24 +0000 (16:54 -0600)
The linux's and BSD's need the 'struct XDR::xdr_ops ops' declaration,
whereas I guess sun does not.

cde/lib/tt/lib/util/tt_xdr_utils.h

index b450564fecc912d95b3981aff15c9066c02baf10..b61b7f1404fa069bc20c9610b206b4f51064deac 100644 (file)
@@ -55,7 +55,11 @@ class _Tt_xdr_size_stream : public _Tt_allocated {
 #ifdef __DECCXX
         XDR::xdr_ops ops;
 #else
+# if defined(sun)
        struct xdr_ops ops;
+# else
+       struct XDR::xdr_ops ops;
+# endif
 #endif
 };