From: Rich Felker Date: Tue, 26 Jun 2018 19:55:29 +0000 (-0400) Subject: fix value of SO_PEERSEC on mips archs X-Git-Tag: v1.1.20~60 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=587f5a53bc3a68d80b239ba515d583df690a96df;p=oweals%2Fmusl.git fix value of SO_PEERSEC on mips archs adapted from patch by Matthias Schiffer. --- diff --git a/arch/mips/bits/socket.h b/arch/mips/bits/socket.h index 191ebdb5..b82c7d34 100644 --- a/arch/mips/bits/socket.h +++ b/arch/mips/bits/socket.h @@ -45,6 +45,7 @@ struct cmsghdr { #define SO_BSDCOMPAT 14 #define SO_PASSCRED 17 #define SO_PEERCRED 18 +#define SO_PEERSEC 30 #define SO_SNDBUFFORCE 31 #define SO_RCVBUFFORCE 33 diff --git a/arch/mips64/bits/socket.h b/arch/mips64/bits/socket.h index cf801797..5aff0d91 100644 --- a/arch/mips64/bits/socket.h +++ b/arch/mips64/bits/socket.h @@ -61,6 +61,7 @@ struct cmsghdr { #define SO_BSDCOMPAT 14 #define SO_PASSCRED 17 #define SO_PEERCRED 18 +#define SO_PEERSEC 30 #define SO_SNDBUFFORCE 31 #define SO_RCVBUFFORCE 33 diff --git a/arch/mipsn32/bits/socket.h b/arch/mipsn32/bits/socket.h index 191ebdb5..b82c7d34 100644 --- a/arch/mipsn32/bits/socket.h +++ b/arch/mipsn32/bits/socket.h @@ -45,6 +45,7 @@ struct cmsghdr { #define SO_BSDCOMPAT 14 #define SO_PASSCRED 17 #define SO_PEERCRED 18 +#define SO_PEERSEC 30 #define SO_SNDBUFFORCE 31 #define SO_RCVBUFFORCE 33 diff --git a/include/sys/socket.h b/include/sys/socket.h index 507da5cc..14be6e99 100644 --- a/include/sys/socket.h +++ b/include/sys/socket.h @@ -183,6 +183,7 @@ struct linger { #define SO_RCVTIMEO 20 #define SO_SNDTIMEO 21 #define SO_ACCEPTCONN 30 +#define SO_PEERSEC 31 #define SO_SNDBUFFORCE 32 #define SO_RCVBUFFORCE 33 #define SO_PROTOCOL 38 @@ -203,7 +204,6 @@ struct linger { #define SO_TIMESTAMP 29 #define SCM_TIMESTAMP SO_TIMESTAMP -#define SO_PEERSEC 31 #define SO_PASSSEC 34 #define SO_TIMESTAMPNS 35 #define SCM_TIMESTAMPNS SO_TIMESTAMPNS