Fix of mixup bwtween SOMAXCONN and SO_MAXCONN.
Furthermore, make SO_MAXCONN the first choice, since that's the standard (as far as I know).
This commit is contained in:
parent
ffbe98b763
commit
ddab25a90d
@ -72,9 +72,9 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef SO_MAXCONN
|
#ifdef SO_MAXCONN
|
||||||
#define MAX_LISTEN SOMAXCONN
|
|
||||||
#elif defined(SO_MAXCONN)
|
|
||||||
#define MAX_LISTEN SO_MAXCONN
|
#define MAX_LISTEN SO_MAXCONN
|
||||||
|
#elif defined(SOMAXCONN)
|
||||||
|
#define MAX_LISTEN SOMAXCONN
|
||||||
#else
|
#else
|
||||||
#define MAX_LISTEN 32
|
#define MAX_LISTEN 32
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user