diff --git a/include/sys/stat.h b/include/sys/stat.h index 0cb770bb..8513a3c9 100644 --- a/include/sys/stat.h +++ b/include/sys/stat.h @@ -23,7 +23,15 @@ #if __GNUC__ && POSIX #undef __MES_SYS_STAT_H #include_next -#endif // (__GNUC__ && POSIX) + +#else // !(__GNUC__ && POSIX) + +#ifndef __MES_MODE_T +#define __MES_MODE_T +typedef int mode_t; +#endif + +int chmod (char const *file_name, mode_t mode); struct stat { int st_dev; @@ -41,5 +49,7 @@ struct stat { int st_ctime; }; +#endif // !(__GNUC__ && POSIX) + #endif // __MES_SYS_STAT_H