Add time_t typedef for POSIX compatibility, move an include.

This commit is contained in:
Mike Barcroft 2002-08-24 00:11:52 +00:00
parent 8e708563c7
commit b36a5d7090

View File

@ -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