From 3f08e8f6ecb50fa31f03eea7a13eaafd79a651d4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net>
Date: Sat, 19 Feb 2022 16:45:56 -0500
Subject: [PATCH] typedef a socket_buffer_t

This is so we can deal with send(), recv() and friends taking
a void* on BSD stacks, and a char* on Win32.

Not a big deal for C where a void* is universal, but C++ hates that
type of thing.
---
 src/xpdev/sockwrap.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/xpdev/sockwrap.h b/src/xpdev/sockwrap.h
index 7dd07a1c18..a2402baa90 100644
--- a/src/xpdev/sockwrap.h
+++ b/src/xpdev/sockwrap.h
@@ -28,6 +28,7 @@
 /* OS-specific */
 /***************/
 #if defined(_WIN32)	/* Use WinSock */
+typedef char* socket_buffer_t;
 
 #ifndef _WINSOCKAPI_
 	#include <winsock2.h>	/* socket/bind/etc. */
@@ -50,7 +51,8 @@
 #endif
 
 #elif defined __unix__		/* Unix-variant */
-							
+typedef void* socket_buffer_t;
+
 #include <netdb.h>			/* gethostbyname */
 #include <sys/types.h>		/* For u_int32_t on FreeBSD */
 #include <netinet/in.h>		/* IPPROTO_IP */
-- 
GitLab