From 2d43dbb1c70aee6c3474c254c0a2302ef39c0c7a Mon Sep 17 00:00:00 2001 From: Owen Shepherd Date: Fri, 3 Oct 2014 18:13:08 +0100 Subject: [PATCH] Add optional EIO to tss_errno --- opt/tss_errno/errno.h | 6 +++++- platform/gandr/includes/_PDCLIB_config.h | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/opt/tss_errno/errno.h b/opt/tss_errno/errno.h index 47b2022..cda22a0 100644 --- a/opt/tss_errno/errno.h +++ b/opt/tss_errno/errno.h @@ -17,7 +17,7 @@ extern int * _PDCLIB_errno_func( void ); #define EDOM _PDCLIB_EDOM #define EILSEQ _PDCLIB_EILSEQ -/* C++11. Yes, they did just copy the POSIX errno list into the standard +/* C++11. Yes, they did just copy the POSIX errno list into the standard * * ...take a DEEP breath... */ @@ -93,6 +93,10 @@ extern int * _PDCLIB_errno_func( void ); #define ENOTDIR _PDCLIB_ENOTDIR #define EPROTOTYPE _PDCLIB_EPROTOTYPE +#ifdef _PDCLIB_EIO +#define EIO _PDCLIB_EIO +#endif + _PDCLIB_END_EXTERN_C #endif diff --git a/platform/gandr/includes/_PDCLIB_config.h b/platform/gandr/includes/_PDCLIB_config.h index 598b216..c899cfd 100644 --- a/platform/gandr/includes/_PDCLIB_config.h +++ b/platform/gandr/includes/_PDCLIB_config.h @@ -283,7 +283,8 @@ typedef __builtin_va_list _PDCLIB_va_list; #define _PDCLIB_ENODATA 71 #define _PDCLIB_ENOTDIR 72 #define _PDCLIB_EPROTOTYPE 73 +#define _PDCLIB_EIO 74 -#define _PDCLIB_ERRNO_MAX 73 +#define _PDCLIB_ERRNO_MAX 74 #endif -- 2.40.0