浏览代码

fix regression in powerpc[64] SO_PEERSEC definition

commit 587f5a53bc3a68d80b239ba515d583df690a96df moved the definition
of SO_PEERSEC to bits/socket.h for archs where the SO_* macros differ
from their standard values, but failed to add copies of the generic
definition for powerpc and powerpc64.
Rich Felker 6 年之前
父节点
当前提交
efda534b21
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      arch/powerpc/bits/socket.h
  2. 1 0
      arch/powerpc64/bits/socket.h

+ 1 - 0
arch/powerpc/bits/socket.h

@@ -36,6 +36,7 @@ struct cmsghdr {
 #define SO_PASSCRED     20
 #define SO_PEERCRED     21
 #define SO_ACCEPTCONN   30
+#define SO_PEERSEC      31
 #define SO_SNDBUFFORCE  32
 #define SO_RCVBUFFORCE  33
 #define SO_PROTOCOL     38

+ 1 - 0
arch/powerpc64/bits/socket.h

@@ -54,6 +54,7 @@ struct cmsghdr {
 #define SO_PASSCRED     20
 #define SO_PEERCRED     21
 #define SO_ACCEPTCONN   30
+#define SO_PEERSEC      31
 #define SO_SNDBUFFORCE  32
 #define SO_RCVBUFFORCE  33
 #define SO_PROTOCOL     38