From bdaa8e57f312fb3d47d38d8905c5c42da87faba6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net>
Date: Sat, 4 Jan 2025 04:22:41 -0500
Subject: [PATCH] Switch all *nix systems to use send()

Bwa ha ha!
---
 src/xpdev/sockwrap.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xpdev/sockwrap.h b/src/xpdev/sockwrap.h
index a82d27eb85..d34c2dc12b 100644
--- a/src/xpdev/sockwrap.h
+++ b/src/xpdev/sockwrap.h
@@ -209,7 +209,7 @@ typedef ULONG nfds_t;
 #define ioctlsocket		ioctl
 #define SOCKET_ERRNO	errno
 #define ERROR_VALUE		errno
-#define sendsocket		write		/* FreeBSD send() is broken */
+#define sendsocket(s,b,l)	send(s,b,l,0)	/* FreeBSD send() is NOT broken Kaila */
 
 #ifdef __WATCOMC__
 	#define socklen_t		int
-- 
GitLab