From f5b6ce170757066ee5387d936efd51c11e18b2cf Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Tue, 13 Jul 2010 23:36:30 -0400 Subject: [PATCH] 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 --- src/rx/xdr_len.c | 2 +- src/rx/xdr_mem.c | 2 +- src/rx/xdr_rx.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rx/xdr_len.c b/src/rx/xdr_len.c index 3b266ba..b0bd808 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 d2f96b7..a489f6b 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 fbf3dbf..2852b6a 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 */ -- 1.9.4