mips-linux-uclibc-g++ bug fix

本文记录了一次使用GCC 4.3.3编译过程中遇到的错误:在mips架构下,socket.h文件中出现的'error: expected initializer before 'throw''错误。详细介绍了错误发生的位置、涉及的软件版本及修改前后的代码对比。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

/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



评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值