Parcourir la source

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 il y a 6 ans
Parent
commit
efda534b21
2 fichiers modifiés avec 2 ajouts et 0 suppressions
  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