mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-24 12:25:35 +08:00
(struct cmsghdr): Use __flexarr.
This commit is contained in:
parent
49f3a75859
commit
6f6fc9d7e1
@ -227,10 +227,8 @@ struct cmsghdr
|
||||
of cmsghdr structure. */
|
||||
int cmsg_level; /* Originating protocol. */
|
||||
int cmsg_type; /* Protocol specific type. */
|
||||
#if !defined __STRICT_ANSI__ && defined __GNUC__ && __GNUC__ >= 2
|
||||
__extension__ unsigned char __cmsg_data[0]; /* Ancillary data. */
|
||||
__extension__ unsigned char __flexarr; /* Ancillary data. */
|
||||
/* XXX Perhaps this should be removed. */
|
||||
#endif
|
||||
};
|
||||
|
||||
/* Ancillary data object manipulation macros. */
|
||||
|
@ -227,10 +227,8 @@ struct cmsghdr
|
||||
of cmsghdr structure. */
|
||||
int cmsg_level; /* Originating protocol. */
|
||||
int cmsg_type; /* Protocol specific type. */
|
||||
#if !defined __STRICT_ANSI__ && defined __GNUC__ && __GNUC__ >= 2
|
||||
unsigned char __cmsg_data[0]; /* Ancillary data. */
|
||||
unsigned char __cmsg_data __flexarr; /* Ancillary data. */
|
||||
/* XXX Perhaps this should be removed. */
|
||||
#endif
|
||||
};
|
||||
|
||||
/* Ancillary data object manipulation macros. */
|
||||
|
Loading…
Reference in New Issue
Block a user