(struct cmsghdr): Use __flexarr.

This commit is contained in:
Andreas Jaeger 2000-11-28 08:05:11 +00:00
parent 49f3a75859
commit 6f6fc9d7e1
2 changed files with 2 additions and 6 deletions

View File

@ -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. */

View File

@ -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. */