mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-05 21:00:05 +00:00
(struct stat): Add attribute((packed)) to counter stupid people misuing gcc options. (struct stat64): Likewise.
This commit is contained in:
parent
64b6bd34ef
commit
5eab9e0215
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user