diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2006-01-06 18:53:07 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2006-01-06 18:53:07 +0000 |
commit | 4f6f4abee953638d3409775c050227c9537c9e8c (patch) | |
tree | 38d3a984a5a051627704f25d9151930244be39c5 /include/utime.h | |
parent | a835e97a88caf4a2d77874683640dd0e6c0225d1 (diff) |
Adapt things to use __type_t instead of _BSD_TYPE_T_
Add new sys/_types.h header
Include machine/_types.h or sys/_types.h where applicable
Diffstat (limited to 'include/utime.h')
-rw-r--r-- | include/utime.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/include/utime.h b/include/utime.h index 3b85ff5902d..9fab94f8c16 100644 --- a/include/utime.h +++ b/include/utime.h @@ -1,4 +1,4 @@ -/* $OpenBSD: utime.h,v 1.5 2003/06/02 19:34:12 millert Exp $ */ +/* $OpenBSD: utime.h,v 1.6 2006/01/06 18:53:04 millert Exp $ */ /* $NetBSD: utime.h,v 1.3 1994/10/26 00:56:39 cgd Exp $ */ /*- @@ -35,11 +35,12 @@ #ifndef _UTIME_H_ #define _UTIME_H_ -#include <machine/ansi.h> +#include <sys/cdefs.h> +#include <machine/_types.h> -#ifdef _BSD_TIME_T_ -typedef _BSD_TIME_T_ time_t; -#undef _BSD_TIME_T_ +#ifndef _TIME_T_DEFINED_ +#define _TIME_T_DEFINED_ +typedef __time_t time_t; #endif struct utimbuf { @@ -47,8 +48,6 @@ struct utimbuf { time_t modtime; /* Modification time */ }; -#include <sys/cdefs.h> - __BEGIN_DECLS int utime(const char *, const struct utimbuf *); __END_DECLS |