浏览代码

fix socket.h struct msghdr member types on powerpc

these were incorrectly copied from the kernel, whose ABI matches the
POSIX requirements but with the wrong underlying types and wrong
signedness.
Rich Felker 11 年之前
父节点
当前提交
514c2dd24f
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      arch/powerpc/bits/socket.h

+ 4 - 4
arch/powerpc/bits/socket.h

@@ -1,12 +1,12 @@
 struct msghdr
 struct msghdr
 {
 {
 	void *msg_name;
 	void *msg_name;
-	int msg_namelen;
+	socklen_t msg_namelen;
 	struct iovec *msg_iov;
 	struct iovec *msg_iov;
-	unsigned long msg_iovlen;
+	int msg_iovlen;
 	void *msg_control;
 	void *msg_control;
-	unsigned long  msg_controllen;
-	unsigned msg_flags;
+	socklen_t msg_controllen;
+	int msg_flags;
 };
 };
 
 
 struct cmsghdr
 struct cmsghdr