PR/31054: mrt at notwork dot org: struct stat broken on LP64 with

!defined(_NETBSD_SOURCE).
Fixed as suggested.
This commit is contained in:
christos 2005-08-24 10:13:09 +00:00
parent 34772d5e9b
commit 05f86f0175
1 changed files with 5 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: stat.h,v 1.49 2005/08/19 02:04:04 christos Exp $ */ /* $NetBSD: stat.h,v 1.50 2005/08/24 10:13:09 christos Exp $ */
/*- /*-
* Copyright (c) 1982, 1986, 1989, 1993 * Copyright (c) 1982, 1986, 1989, 1993
@ -159,18 +159,17 @@ struct stat {
struct timespec st_ctimespec;/* time of last file status change */ struct timespec st_ctimespec;/* time of last file status change */
struct timespec st_birthtimespec; /* time of creation */ struct timespec st_birthtimespec; /* time of creation */
#else #else
__STATPAD(__pad0)
time_t st_atime; /* time of last access */ time_t st_atime; /* time of last access */
__STATPAD(__pad1) __STATPAD(__pad0)
long st_atimensec; /* nsec of last access */ long st_atimensec; /* nsec of last access */
time_t st_mtime; /* time of last data modification */ time_t st_mtime; /* time of last data modification */
__STATPAD(__pad2) __STATPAD(__pad1)
long st_mtimensec; /* nsec of last data modification */ long st_mtimensec; /* nsec of last data modification */
time_t st_ctime; /* time of last file status change */ time_t st_ctime; /* time of last file status change */
__STATPAD(__pad3) __STATPAD(__pad2)
long st_ctimensec; /* nsec of last file status change */ long st_ctimensec; /* nsec of last file status change */
time_t st_birthtime; /* time of creation */ time_t st_birthtime; /* time of creation */
__STATPAD(__pad4) __STATPAD(__pad3)
long st_birthtimensec; /* nsec of time of creation */ long st_birthtimensec; /* nsec of time of creation */
#endif #endif
off_t st_size; /* file size, in bytes */ off_t st_size; /* file size, in bytes */