From: Jon Trulson Date: Sat, 22 Mar 2014 22:54:24 +0000 (-0600) Subject: tt_xdr_utils.h: fix build error on linux/bsd introduced with illumos initial patch. X-Git-Tag: 2.2.2~47 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ddb49330398a4594fca53f665e2a9547f64a9d6c;p=oweals%2Fcde.git tt_xdr_utils.h: fix build error on linux/bsd introduced with illumos initial patch. The linux's and BSD's need the 'struct XDR::xdr_ops ops' declaration, whereas I guess sun does not. --- diff --git a/cde/lib/tt/lib/util/tt_xdr_utils.h b/cde/lib/tt/lib/util/tt_xdr_utils.h index b450564f..b61b7f14 100644 --- a/cde/lib/tt/lib/util/tt_xdr_utils.h +++ b/cde/lib/tt/lib/util/tt_xdr_utils.h @@ -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 };