1. 程式人生 > >mips-linux-uclibc-g++ bug fix

mips-linux-uclibc-g++ bug fix

/gcc-4.3.3/build_mips/staging_dir/usr/include/bits/socket.h:271: error: expected initializer before 'throw'

gcc version:4.3.3

uclibc version:     uClibc-0.9.30

route: gcc-4.3.3/toolchain_build_mips/uClibc-0.9.30/libc/sysdeps/linux/mips/bits/socket.h

bug fix information:

Index: libc/sysdeps/linux/mips/bits/socket.h

===================================================================
--- libc/sysdeps/linux/mips/bits/socket.h(revision 24233)
+++ libc/sysdeps/linux/mips/bits/socket.h(working copy)
@@ -268,8 +268,8 @@
 + CMSG_ALIGN (sizeof (struct cmsghdr)))
 #define CMSG_LEN(len)   (CMSG_ALIGN (sizeof (struct cmsghdr)) + (len))
 
-extern struct cmsghdr * __NTH (__cmsg_nxthdr (struct msghdr *__mhdr,
-     struct cmsghdr *__cmsg)) __THROW;
+extern struct cmsghdr *__cmsg_nxthdr (struct msghdr *__mhdr,
+     struct cmsghdr *__cmsg) __THROW;
 libc_hidden_proto(__cmsg_nxthdr)
 #ifdef __USE_EXTERN_INLINES
 # ifndef _EXTERN_INLINE