From: Derrick Brashear Date: Wed, 14 Jul 2010 03:36:30 +0000 (-0400) Subject: xdr sunpro not always c99 X-Git-Tag: openafs-devel-1_5_76~127 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=f5b6ce170757066ee5387d936efd51c11e18b2cf;p=packages%2Fo%2Fopenafs.git xdr sunpro not always c99 old enough sunpro c won't be c99, and doesn't define a macro when it is c99. since there's no way to tell, be safe. Change-Id: I1709827872b03c5365d9bb26b0ce9d86f038d882 Reviewed-on: http://gerrit.openafs.org/2410 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/rx/xdr_len.c b/src/rx/xdr_len.c index 3b266bac1..b0bd80809 100644 --- a/src/rx/xdr_len.c +++ b/src/rx/xdr_len.c @@ -84,7 +84,7 @@ xdrlen_inline(XDR *xdrs, u_int len) } static struct xdr_ops xdrlen_ops = { -#if defined(AFS_NT40_ENV) || (defined(AFS_SGI_ENV) && !defined(__c99)) +#if defined(AFS_NT40_ENV) || defined(__SUNPRO_C) || (defined(AFS_SGI_ENV) && !defined(__c99)) #ifdef AFS_XDR_64BITOPS NULL, NULL, diff --git a/src/rx/xdr_mem.c b/src/rx/xdr_mem.c index d2f96b7e9..a489f6be9 100644 --- a/src/rx/xdr_mem.c +++ b/src/rx/xdr_mem.c @@ -62,7 +62,7 @@ static afs_int32 *xdrmem_inline(XDR *, u_int); static void xdrmem_destroy(XDR *); static struct xdr_ops xdrmem_ops = { -#if defined(AFS_NT40_ENV) || (defined(AFS_SGI_ENV) && !defined(__c99)) +#if defined(AFS_NT40_ENV) || defined(__SUNPRO_C) || (defined(AFS_SGI_ENV) && !defined(__c99)) #ifdef AFS_XDR_64BITOPS NULL, NULL, diff --git a/src/rx/xdr_rx.c b/src/rx/xdr_rx.c index fbf3dbf34..2852b6ab0 100644 --- a/src/rx/xdr_rx.c +++ b/src/rx/xdr_rx.c @@ -80,7 +80,7 @@ static afs_int32 *xdrrx_inline(XDR *axdrs, u_int len); * Ops vector for stdio type XDR */ static struct xdr_ops xdrrx_ops = { -#if defined(AFS_NT40_ENV) || (defined(AFS_SGI_ENV) && !defined(__c99)) +#if defined(AFS_NT40_ENV) || defined(__SUNPRO_C) || (defined(AFS_SGI_ENV) && !defined(__c99)) #ifdef AFS_XDR_64BITOPS xdrrx_getint64, /* deserialize an afs_int64 */ xdrrx_putint64, /* serialize an afs_int64 */