Add time_t typedef for POSIX compatibility, move an include.
This commit is contained in:
parent
8e708563c7
commit
b36a5d7090
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=102337
@ -37,13 +37,19 @@
|
|||||||
#ifndef _UTIME_H_
|
#ifndef _UTIME_H_
|
||||||
#define _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 {
|
struct utimbuf {
|
||||||
time_t actime; /* Access time */
|
time_t actime; /* Access time */
|
||||||
time_t modtime; /* Modification time */
|
time_t modtime; /* Modification time */
|
||||||
};
|
};
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
int utime(const char *, const struct utimbuf *);
|
int utime(const char *, const struct utimbuf *);
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
Loading…
Reference in New Issue
Block a user