summaryrefslogtreecommitdiff
path: root/util/isol.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2026-03-10 14:13:05 +0100
committerJörg Frings-Fürst <debian@jff.email>2026-03-10 14:13:05 +0100
commit4c3795225b27640dd1c2af9ebd2b3de00ef41a17 (patch)
treed0caa65ea0e4c1054a93cfba47fa18b7a64a8e6d /util/isol.c
parent43b794d63b2a1c545f104974204fc25eaa010048 (diff)
parent204e4bd19c62a7f1030333ec646d776abbbb7917 (diff)
Update upstream source from tag 'upstream/3.2.2'
Update to upstream version '3.2.2' with Debian dir 1c6b7eea1d994272441294adce2b765895b6e4b5
Diffstat (limited to 'util/isol.c')
-rw-r--r--util/isol.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/util/isol.c b/util/isol.c
index 447945b..a65fbc2 100644
--- a/util/isol.c
+++ b/util/isol.c
@@ -19,6 +19,7 @@
* 05/24/07 Andy Cress - Fix Enter key confusion in BIOS Setup (use CR+LF)
* 06/15/07 Andy Cress - More fixes to Windows translation (fUseWinCon)
* 08/20/07 Andy Cress - moved Windows translation to isolwin.c
+ * 01/31/26 Andy Cress - added WIN32_LEAN_AND_MEAN
* See ChangeLog for further changes
*
* NOTE: There are a few other options for Serial-Over-LAN console
@@ -73,10 +74,15 @@ int i_sol(int argc, char **argv)
/* All other OSs: Linux, Windows, Solaris, BSD */
#ifdef WIN32
+#define WIN32_LEAN_AND_MEAN
+#ifdef HAVE_IPV6
+#include <winsock2.h>
+#else
+#include <winsock.h>
+#endif
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
-#include <winsock.h>
#include <io.h>
#include "getopt.h"
#else