Replace u_int with "unsigned int" to prevent following errors:
#include <sys/types.h> #include <sys/stat.h> main () { } cc -D_POSIX_C_SOURCE test.c /usr/include/sys/stat.h:127: syntax error before "u_int" /usr/include/sys/stat.h:158: syntax error before "u_int" (u_int becomes invisible for _POSIX_C_SOURCE and some other *_SOURCE modes)
This commit is contained in:
parent
801f005cb2
commit
eb9ab6eb43
@ -124,8 +124,8 @@ struct stat {
|
||||
* to cover up to 64 bits on 32-bit machines. We assume that
|
||||
* CHAR_BIT is 8...
|
||||
*/
|
||||
u_int :(8 / 2) * (16 - (int)sizeof(struct timespec));
|
||||
u_int :(8 / 2) * (16 - (int)sizeof(struct timespec));
|
||||
unsigned int :(8 / 2) * (16 - (int)sizeof(struct timespec));
|
||||
unsigned int :(8 / 2) * (16 - (int)sizeof(struct timespec));
|
||||
#else
|
||||
time_t st_birthtime; /* time of file creation */
|
||||
long st_birthtimensec; /* nsec of file creation */
|
||||
@ -155,8 +155,8 @@ struct nstat {
|
||||
/*
|
||||
* See above about the following padding.
|
||||
*/
|
||||
u_int :(8 / 2) * (16 - (int)sizeof(struct timespec));
|
||||
u_int :(8 / 2) * (16 - (int)sizeof(struct timespec));
|
||||
unsigned int :(8 / 2) * (16 - (int)sizeof(struct timespec));
|
||||
unsigned int :(8 / 2) * (16 - (int)sizeof(struct timespec));
|
||||
};
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user