diff --git a/vfs/ChangeLog b/vfs/ChangeLog index 758c0b9d0..7360ab83a 100644 --- a/vfs/ChangeLog +++ b/vfs/ChangeLog @@ -1,3 +1,9 @@ +Sun Nov 29 02:54:54 1998 Timur I. Bakeyev + + * vfs.h: (Temporary?) fix to the compiling error: Some of the error + codes, defined here are Linux specific and unknown to other systems. + Changed to #ifdef's with assigning new codes by means ELAST+offset. + Tue 24 Nov 12:43:20 1998 Peter Kleiweg * vfs.c (vfs_parse_ls_lga): ignore trailing + in permission string diff --git a/vfs/vfs.h b/vfs/vfs.h index 9a79033dc..910af4209 100644 --- a/vfs/vfs.h +++ b/vfs/vfs.h @@ -403,9 +403,28 @@ extern void mc_vfs_done( void ); /* And now some defines for our errors. */ +#ifdef ENOSYS #define E_NOTSUPP ENOSYS /* for use in vfs when module does not provide function */ +#else +#define E_NOTSUPP (ELAST+1) /* for use in vfs when module does not provide function */ +#endif + +#ifdef ENOMSG #define E_UNKNOWN ENOMSG /* if we do not know what error happened */ +#else +#define E_UNKNOWN (ELAST+2) /* if we do not know what error happened */ +#endif + +#ifdef EREMOTEIO #define E_REMOTE EREMOTEIO /* if other side of ftp/fish reports error */ +#else +#define E_REMOTE (ELAST+3) /* if other side of ftp/fish reports error */ +#endif + +#ifdef EPROTO #define E_PROTO EPROTO /* if other side fails to follow protocol */ +#else +#define E_PROTO (ELAST+4) /* if other side fails to follow protocol */ +#endif #endif /* __VFS_H */