From 2a9a304964e90dabf7181033e59538bcb28cda24 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Thu, 31 Jan 2008 00:28:23 +0000 Subject: [PATCH] DEVEL15-rx-edquot-20080130 LICENSE MIT Conditionalize error translation on the existence of EDQUOT not on platform macros (cherry picked from commit 9ce814aa99b6877843f38c7fdd8fde09cb2a743c) --- 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 2dd3b045a..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) && !defined(AFS_DJGPP_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) || defined(AFS_DJGPP_ENV) +#ifndef EDQUOT err = ENOSPC; #else err = EDQUOT; -- 2.39.5