mlibc: Declare chmod.

* include/sys/stat.h (mode_t, chmod): Declare.
This commit is contained in:
Jan Nieuwenhuizen 2018-04-29 12:01:25 +02:00
parent 4ff63354a7
commit 5f7f2c9894
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
1 changed files with 11 additions and 1 deletions

View File

@ -23,7 +23,15 @@
#if __GNUC__ && POSIX
#undef __MES_SYS_STAT_H
#include_next <sys/stat.h>
#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