提交 587f5a53 编写于 作者: R Rich Felker

fix value of SO_PEERSEC on mips archs

adapted from patch by Matthias Schiffer.
上级 471497ab
...@@ -45,6 +45,7 @@ struct cmsghdr { ...@@ -45,6 +45,7 @@ struct cmsghdr {
#define SO_BSDCOMPAT 14 #define SO_BSDCOMPAT 14
#define SO_PASSCRED 17 #define SO_PASSCRED 17
#define SO_PEERCRED 18 #define SO_PEERCRED 18
#define SO_PEERSEC 30
#define SO_SNDBUFFORCE 31 #define SO_SNDBUFFORCE 31
#define SO_RCVBUFFORCE 33 #define SO_RCVBUFFORCE 33
......
...@@ -61,6 +61,7 @@ struct cmsghdr { ...@@ -61,6 +61,7 @@ struct cmsghdr {
#define SO_BSDCOMPAT 14 #define SO_BSDCOMPAT 14
#define SO_PASSCRED 17 #define SO_PASSCRED 17
#define SO_PEERCRED 18 #define SO_PEERCRED 18
#define SO_PEERSEC 30
#define SO_SNDBUFFORCE 31 #define SO_SNDBUFFORCE 31
#define SO_RCVBUFFORCE 33 #define SO_RCVBUFFORCE 33
......
...@@ -45,6 +45,7 @@ struct cmsghdr { ...@@ -45,6 +45,7 @@ struct cmsghdr {
#define SO_BSDCOMPAT 14 #define SO_BSDCOMPAT 14
#define SO_PASSCRED 17 #define SO_PASSCRED 17
#define SO_PEERCRED 18 #define SO_PEERCRED 18
#define SO_PEERSEC 30
#define SO_SNDBUFFORCE 31 #define SO_SNDBUFFORCE 31
#define SO_RCVBUFFORCE 33 #define SO_RCVBUFFORCE 33
......
...@@ -183,6 +183,7 @@ struct linger { ...@@ -183,6 +183,7 @@ struct linger {
#define SO_RCVTIMEO 20 #define SO_RCVTIMEO 20
#define SO_SNDTIMEO 21 #define SO_SNDTIMEO 21
#define SO_ACCEPTCONN 30 #define SO_ACCEPTCONN 30
#define SO_PEERSEC 31
#define SO_SNDBUFFORCE 32 #define SO_SNDBUFFORCE 32
#define SO_RCVBUFFORCE 33 #define SO_RCVBUFFORCE 33
#define SO_PROTOCOL 38 #define SO_PROTOCOL 38
...@@ -203,7 +204,6 @@ struct linger { ...@@ -203,7 +204,6 @@ struct linger {
#define SO_TIMESTAMP 29 #define SO_TIMESTAMP 29
#define SCM_TIMESTAMP SO_TIMESTAMP #define SCM_TIMESTAMP SO_TIMESTAMP
#define SO_PEERSEC 31
#define SO_PASSSEC 34 #define SO_PASSSEC 34
#define SO_TIMESTAMPNS 35 #define SO_TIMESTAMPNS 35
#define SCM_TIMESTAMPNS SO_TIMESTAMPNS #define SCM_TIMESTAMPNS SO_TIMESTAMPNS
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册