File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -961,7 +961,8 @@ bool AppInitParameterInteraction()
961
961
nMaxConnections = std::max (nUserMaxConnections, 0 );
962
962
963
963
// Trim requested connection counts, to fit into system limitations
964
- nMaxConnections = std::max (std::min (nMaxConnections, FD_SETSIZE - nBind - MIN_CORE_FILEDESCRIPTORS - MAX_ADDNODE_CONNECTIONS), 0 );
964
+ // <int> in std::min<int>(...) to work around FreeBSD compilation issue described in #2695
965
+ nMaxConnections = std::max (std::min<int >(nMaxConnections, FD_SETSIZE - nBind - MIN_CORE_FILEDESCRIPTORS - MAX_ADDNODE_CONNECTIONS), 0 );
965
966
nFD = RaiseFileDescriptorLimit (nMaxConnections + MIN_CORE_FILEDESCRIPTORS + MAX_ADDNODE_CONNECTIONS);
966
967
if (nFD < MIN_CORE_FILEDESCRIPTORS)
967
968
return InitError (_ (" Not enough file descriptors available." ));
You can’t perform that action at this time.
0 commit comments