summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-03-29 23:48:29 +0000
committerRichard Levitte <levitte@openssl.org>2002-03-29 23:48:29 +0000
commit4a579233b4838da9366d7d3533a2a788ee71a2b5 (patch)
treeaa3ed414f9399dedc8ad7b41a1cdeaebb1804582 /crypto
parentca3bba36c444ca8a6e39e8f72bedae1fac036ae3 (diff)
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).
Diffstat (limited to 'crypto')
-rw-r--r--crypto/bio/b_sock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/bio/b_sock.c b/crypto/bio/b_sock.c
index 7dfcbab769..8fb0716e7f 100644
--- a/crypto/bio/b_sock.c
+++ b/crypto/bio/b_sock.c
@@ -72,9 +72,9 @@
#endif
#ifdef SO_MAXCONN
-#define MAX_LISTEN SOMAXCONN
-#elif defined(SO_MAXCONN)
#define MAX_LISTEN SO_MAXCONN
+#elif defined(SOMAXCONN)
+#define MAX_LISTEN SOMAXCONN
#else
#define MAX_LISTEN 32
#endif