diff options
author | David Schleef <ds@schleef.org> | 2001-05-22 14:36:19 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2001-05-22 14:36:19 +0000 |
commit | d2c9f24fe0a6e73247c827d54b8c2189b61c4ea2 (patch) | |
tree | 3e351d506328f995a6fc84cb574f4c38535ba6c4 /libc/sysdeps/linux/mips/bits/socket.h | |
parent | 665ce29c84a830259683fdb58c76da7efc00f890 (diff) |
Header cleanups to fix compilation. Mostly a hack, pending figuring
out the best way to do some things.
Diffstat (limited to 'libc/sysdeps/linux/mips/bits/socket.h')
-rw-r--r-- | libc/sysdeps/linux/mips/bits/socket.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/mips/bits/socket.h b/libc/sysdeps/linux/mips/bits/socket.h index 2d6ded905..f256a9b3e 100644 --- a/libc/sysdeps/linux/mips/bits/socket.h +++ b/libc/sysdeps/linux/mips/bits/socket.h @@ -227,8 +227,10 @@ struct cmsghdr of cmsghdr structure. */ int cmsg_level; /* Originating protocol. */ int cmsg_type; /* Protocol specific type. */ +#if 0 __extension__ unsigned char __cmsg_data __flexarr; /* Ancillary data. */ /* XXX Perhaps this should be removed. */ +#endif }; /* Ancillary data object manipulation macros. */ @@ -248,13 +250,13 @@ struct cmsghdr #define CMSG_LEN(len) (CMSG_ALIGN (sizeof (struct cmsghdr)) + (len)) extern struct cmsghdr *__cmsg_nxthdr (struct msghdr *__mhdr, - struct cmsghdr *__cmsg) __THROW; + struct cmsghdr *__cmsg); #ifdef __USE_EXTERN_INLINES # ifndef _EXTERN_INLINE # define _EXTERN_INLINE extern __inline # endif _EXTERN_INLINE struct cmsghdr * -__cmsg_nxthdr (struct msghdr *__mhdr, struct cmsghdr *__cmsg) __THROW +__cmsg_nxthdr (struct msghdr *__mhdr, struct cmsghdr *__cmsg) { if ((size_t) __cmsg->cmsg_len < sizeof (struct cmsghdr)) /* The kernel header does this so there may be a reason. */ |