Add time_t typedef for POSIX compatibility, move an include.
This commit is contained in:
parent
8e708563c7
commit
b36a5d7090
@ -37,13 +37,19 @@
|
||||
#ifndef _UTIME_H_
|
||||
#define _UTIME_H_
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <sys/_types.h>
|
||||
|
||||
#ifndef _TIME_T_DECLARED
|
||||
typedef __time_t time_t;
|
||||
#define _TIME_T_DECLARED
|
||||
#endif
|
||||
|
||||
struct utimbuf {
|
||||
time_t actime; /* Access time */
|
||||
time_t modtime; /* Modification time */
|
||||
};
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
int utime(const char *, const struct utimbuf *);
|
||||
__END_DECLS
|
||||
|
Loading…
Reference in New Issue
Block a user