diff options
author | Ulrich Drepper <drepper@redhat.com> | 2002-02-06 18:12:16 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2002-02-06 18:12:16 +0000 |
commit | 5eab9e021553dd7875066e5e7d03d95611dee287 (patch) | |
tree | 03201ed9fc2886e47384e41cb38ccd7356e84a63 /sysdeps | |
parent | 64b6bd34ef7cd7db0d87cb49f38b3138831f6d6f (diff) | |
download | glibc-5eab9e021553dd7875066e5e7d03d95611dee287.tar.gz glibc-5eab9e021553dd7875066e5e7d03d95611dee287.tar.xz glibc-5eab9e021553dd7875066e5e7d03d95611dee287.zip |
(struct stat): Add attribute((packed)) to counter stupid people misuing gcc options. (struct stat64): Likewise.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/unix/sysv/linux/bits/stat.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/bits/stat.h b/sysdeps/unix/sysv/linux/bits/stat.h index f446a91db9..2f45894f59 100644 --- a/sysdeps/unix/sysv/linux/bits/stat.h +++ b/sysdeps/unix/sysv/linux/bits/stat.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1992,95,96,97,98,99,2000,2001 Free Software Foundation, Inc. +/* Copyright (C) 1992, 1995-2001, 2002 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -72,7 +72,7 @@ struct stat #else __ino64_t st_ino; /* File serial number. */ #endif - }; + } __attribute__ ((__packed__)); #ifdef __USE_LARGEFILE64 struct stat64 @@ -98,7 +98,7 @@ struct stat64 __time_t st_ctime; /* Time of last status change. */ unsigned long int __unused3; __ino64_t st_ino; /* File serial number. */ - }; + } __attribute__ ((__packed__)); #endif /* Tell code we have these members. */ |