From 9ce814aa99b6877843f38c7fdd8fde09cb2a743c Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Thu, 31 Jan 2008 00:25:59 +0000 Subject: [PATCH] rx-edquot-20080130 LICENSE MIT Conditionalize error translation on the existence of EDQUOT not on platform macros --- src/rx/rx_misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rx/rx_misc.c b/src/rx/rx_misc.c index fde2618e0..eb8167cd3 100644 --- a/src/rx/rx_misc.c +++ b/src/rx/rx_misc.c @@ -53,7 +53,7 @@ hton_syserr_conv(register afs_int32 code) if (code == ENOSPC) err = VDISKFULL; -#if !defined(AFS_SUN5_ENV) && !defined(AFS_NT40_ENV) +#ifdef EDQUOT /* EDQUOT doesn't exist on solaris */ else if (code == EDQUOT) err = VOVERQUOTA; @@ -76,7 +76,7 @@ ntoh_syserr_conv(int code) if (code == VDISKFULL) err = ENOSPC; else if (code == VOVERQUOTA) -#if defined(AFS_SUN5_ENV) || defined(AFS_NT40_ENV) +#ifndef EDQUOT err = ENOSPC; #else err = EDQUOT; -- 2.39.5