From 733d6c3484b650f18b25d42c2638af3ef3f35bf5 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Sat, 18 May 2024 11:01:11 -0400 Subject: [PATCH] libretro: Allow using EDQUOT or WSAEDQUOT --- src/physfs_platform_libretro.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/physfs_platform_libretro.c b/src/physfs_platform_libretro.c index dfa798e..78172ca 100644 --- a/src/physfs_platform_libretro.c +++ b/src/physfs_platform_libretro.c @@ -350,7 +350,11 @@ static PHYSFS_ErrorCode errcodeFromErrnoError(const int err) case 0: return PHYSFS_ERR_OK; case EACCES: return PHYSFS_ERR_PERMISSION; case EPERM: return PHYSFS_ERR_PERMISSION; +#if defined(EDQUOT) case EDQUOT: return PHYSFS_ERR_NO_SPACE; +#elif defined(WSAEDQUOT) + case WSAEDQUOT: return PHYSFS_ERR_NO_SPACE; +#endif case EIO: return PHYSFS_ERR_IO; case ELOOP: return PHYSFS_ERR_SYMLINK_LOOP; case EMLINK: return PHYSFS_ERR_NO_SPACE;