diff options
author | Andreas Jaeger <aj@suse.de> | 2000-11-28 08:05:11 +0000 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2000-11-28 08:05:11 +0000 |
commit | 6f6fc9d7e1007877e325249410f26b96b14edfc8 (patch) | |
tree | 138e548878a570f6ee9c410cc5127ec531fce36f /sysdeps/unix/sysv | |
parent | 49f3a758597f7904ba7e779156df8f9b61c06303 (diff) | |
download | glibc-6f6fc9d7e1007877e325249410f26b96b14edfc8.tar glibc-6f6fc9d7e1007877e325249410f26b96b14edfc8.tar.gz glibc-6f6fc9d7e1007877e325249410f26b96b14edfc8.tar.bz2 glibc-6f6fc9d7e1007877e325249410f26b96b14edfc8.zip |
(struct cmsghdr): Use __flexarr.
Diffstat (limited to 'sysdeps/unix/sysv')
-rw-r--r-- | sysdeps/unix/sysv/linux/bits/socket.h | 4 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/mips/bits/socket.h | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/sysdeps/unix/sysv/linux/bits/socket.h b/sysdeps/unix/sysv/linux/bits/socket.h index 98e5b65ac7..fef4ab1c75 100644 --- a/sysdeps/unix/sysv/linux/bits/socket.h +++ b/sysdeps/unix/sysv/linux/bits/socket.h @@ -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. */ diff --git a/sysdeps/unix/sysv/linux/mips/bits/socket.h b/sysdeps/unix/sysv/linux/mips/bits/socket.h index ac7ff0795d..ce6fa88c04 100644 --- a/sysdeps/unix/sysv/linux/mips/bits/socket.h +++ b/sysdeps/unix/sysv/linux/mips/bits/socket.h @@ -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. */ |