File 0566-epmd-Do-not-check-max-fd-size-on-windows.patch of Package erlang

From 5bd23aa6ac950dc0613e7353cb4b56019b12c2b7 Mon Sep 17 00:00:00 2001
From: Lukas Larsson <lukas@erlang.org>
Date: Fri, 17 Apr 2020 09:56:11 +0200
Subject: [PATCH] epmd: Do not check max fd size on windows

---
 erts/epmd/src/epmd_srv.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/erts/epmd/src/epmd_srv.c b/erts/epmd/src/epmd_srv.c
index c37ca197f5..339df3bccf 100644
--- a/erts/epmd/src/epmd_srv.c
+++ b/erts/epmd/src/epmd_srv.c
@@ -1050,11 +1050,13 @@ static int conn_open(EpmdVars *g,int fd)
   }
 #endif
 
+#if !defined(__WIN32__)
   if (fd >= FD_SETSIZE) {
       dbg_tty_printf(g,0,"fd does not fit in fd_set fd=%d, FD_SETSIZE=%d",fd, FD_SETSIZE);
       close(fd);
       return EPMD_FALSE;
   }
+#endif
 
   for (i = 0; i < g->max_conn; i++) {
     if (g->conn[i].open == EPMD_FALSE) {
-- 
2.16.4

openSUSE Build Service is sponsored by