aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/bio/b_sock.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-03-29 23:48:55 +0000
committerRichard Levitte <levitte@openssl.org>2002-03-29 23:48:55 +0000
commitddab25a90dd4bdddf0da1eb288af58ff16a74630 (patch)
tree854cf0074ad2f65dfa55cd8de33b4d0105023176 /crypto/bio/b_sock.c
parentffbe98b7630d604263cfb1118c67ca2617a8e222 (diff)
downloadopenssl-ddab25a90dd4bdddf0da1eb288af58ff16a74630.tar.gz
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/bio/b_sock.c')
-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 6d77b9d8d4..dcaef68ea7 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