disable SO_REUSEPORT in sys/socket.h

although a number is reserved for it, this option is not implemented
on Linux and does not work. defining it causes some applications to
use it, and subsequently break due to its failure.
This commit is contained in:
Rich Felker 2012-11-15 19:16:10 -05:00
parent 7491bac33e
commit 91738d0241
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ struct cmsghdr
#define SO_PRIORITY 12 #define SO_PRIORITY 12
#define SO_LINGER 128 #define SO_LINGER 128
#define SO_BSDCOMPAT 14 #define SO_BSDCOMPAT 14
#define SO_REUSEPORT 512 /* #define SO_REUSEPORT 512 */
#define SO_PASSCRED 17 #define SO_PASSCRED 17
#define SO_PEERCRED 18 #define SO_PEERCRED 18
#define SO_RCVLOWAT 0x1004 #define SO_RCVLOWAT 0x1004

View File

@ -143,7 +143,7 @@ struct linger
#define SO_PRIORITY 12 #define SO_PRIORITY 12
#define SO_LINGER 13 #define SO_LINGER 13
#define SO_BSDCOMPAT 14 #define SO_BSDCOMPAT 14
#define SO_REUSEPORT 15 /* #define SO_REUSEPORT 15 */
#define SO_PASSCRED 16 #define SO_PASSCRED 16
#define SO_PEERCRED 17 #define SO_PEERCRED 17
#define SO_RCVLOWAT 18 #define SO_RCVLOWAT 18