From 4e9c50b523e778ff0eb19a99723ad200b34357bc Mon Sep 17 00:00:00 2001
From: "Rob Swindell (on Windows 11)" <rob@synchro.net>
Date: Tue, 19 Dec 2023 00:17:35 -0800
Subject: [PATCH] Fix Windows build: #include eventwrap.h, not xpevent.h

---
 src/sbbs3/ssl.c     | 2 +-
 src/xpdev/xpevent.h | 6 ------
 2 files changed, 1 insertion(+), 7 deletions(-)

diff --git a/src/sbbs3/ssl.c b/src/sbbs3/ssl.c
index efe19fb25d..ed3274e398 100644
--- a/src/sbbs3/ssl.c
+++ b/src/sbbs3/ssl.c
@@ -3,7 +3,7 @@
 
 #include <threadwrap.h>
 #include "xpprintf.h"
-#include "xpevent.h"
+#include "eventwrap.h"
 
 #include "ssl.h"
 //#include "js_socket.h"	// TODO... move this stuff in here?
diff --git a/src/xpdev/xpevent.h b/src/xpdev/xpevent.h
index 4af706a4c5..7fa8b51798 100644
--- a/src/xpdev/xpevent.h
+++ b/src/xpdev/xpevent.h
@@ -38,14 +38,10 @@
 #ifndef _XPEVENT_H_
 #define _XPEVENT_H_
 
-#ifdef _WIN32
-
 #include "gen_defs.h"
 typedef HANDLE xpevent_t;
 #define WaitForEvent(event, ms) WaitForSingleObject(event, ms)
 
-#else
-
 #include <pthread.h>
 #include "gen_defs.h"
 
@@ -89,5 +85,3 @@ enum {
 };
 
 #endif
-
-#endif
-- 
GitLab