mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
(struct cmsghdr): Use __flexarr.
This commit is contained in:
@ -227,10 +227,8 @@ struct cmsghdr
|
|||||||
of cmsghdr structure. */
|
of cmsghdr structure. */
|
||||||
int cmsg_level; /* Originating protocol. */
|
int cmsg_level; /* Originating protocol. */
|
||||||
int cmsg_type; /* Protocol specific type. */
|
int cmsg_type; /* Protocol specific type. */
|
||||||
#if !defined __STRICT_ANSI__ && defined __GNUC__ && __GNUC__ >= 2
|
__extension__ unsigned char __flexarr; /* Ancillary data. */
|
||||||
__extension__ unsigned char __cmsg_data[0]; /* Ancillary data. */
|
|
||||||
/* XXX Perhaps this should be removed. */
|
/* XXX Perhaps this should be removed. */
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Ancillary data object manipulation macros. */
|
/* Ancillary data object manipulation macros. */
|
||||||
|
@ -227,10 +227,8 @@ struct cmsghdr
|
|||||||
of cmsghdr structure. */
|
of cmsghdr structure. */
|
||||||
int cmsg_level; /* Originating protocol. */
|
int cmsg_level; /* Originating protocol. */
|
||||||
int cmsg_type; /* Protocol specific type. */
|
int cmsg_type; /* Protocol specific type. */
|
||||||
#if !defined __STRICT_ANSI__ && defined __GNUC__ && __GNUC__ >= 2
|
unsigned char __cmsg_data __flexarr; /* Ancillary data. */
|
||||||
unsigned char __cmsg_data[0]; /* Ancillary data. */
|
|
||||||
/* XXX Perhaps this should be removed. */
|
/* XXX Perhaps this should be removed. */
|
||||||
#endif
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Ancillary data object manipulation macros. */
|
/* Ancillary data object manipulation macros. */
|
||||||
|
Reference in New Issue
Block a user