--- tests/handshake_table.c.orig	Tue Mar 15 11:37:03 2022
+++ tests/handshake_table.c	Mon Mar 21 05:26:15 2022
@@ -518,6 +518,7 @@
 	unsigned int	depth = 0;
 	int		ch, graphviz = 0, print = 0;
 
+#ifndef _MSC_VER
 	while ((ch = getopt(argc, argv, "Cg")) != -1) {
 		switch (ch) {
 		case 'C':
@@ -535,6 +536,7 @@
 
 	if (argc != 0)
 		usage();
+#endif
 
 	if (graphviz && print)
 		usage();
