From 05f86f0175325afef5bd0e47f47a87b248c44024 Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 24 Aug 2005 10:13:09 +0000 Subject: [PATCH] PR/31054: mrt at notwork dot org: struct stat broken on LP64 with !defined(_NETBSD_SOURCE). Fixed as suggested. --- sys/sys/stat.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/sys/sys/stat.h b/sys/sys/stat.h index 0a2e3cec3a15..5fcc80115391 100644 --- a/sys/sys/stat.h +++ b/sys/sys/stat.h @@ -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 @@ -159,18 +159,17 @@ struct stat { struct timespec st_ctimespec;/* time of last file status change */ struct timespec st_birthtimespec; /* time of creation */ #else - __STATPAD(__pad0) time_t st_atime; /* time of last access */ - __STATPAD(__pad1) + __STATPAD(__pad0) long st_atimensec; /* nsec of last access */ time_t st_mtime; /* time of last data modification */ - __STATPAD(__pad2) + __STATPAD(__pad1) long st_mtimensec; /* nsec of last data modification */ time_t st_ctime; /* time of last file status change */ - __STATPAD(__pad3) + __STATPAD(__pad2) long st_ctimensec; /* nsec of last file status change */ time_t st_birthtime; /* time of creation */ - __STATPAD(__pad4) + __STATPAD(__pad3) long st_birthtimensec; /* nsec of time of creation */ #endif off_t st_size; /* file size, in bytes */