SDL_net: Another attempt to fix this to compile on Windows and macOS.

From 6fba20b3cfb550b8675f2f156cdc6e9bd72b9818 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Mon, 23 Oct 2023 02:38:58 -0400
Subject: [PATCH] Another attempt to fix this to compile on Windows and macOS.

---
 src/SDL_net.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/SDL_net.c b/src/SDL_net.c
index 4bd9f5b..74dcdc1 100644
--- a/src/SDL_net.c
+++ b/src/SDL_net.c
@@ -936,7 +936,7 @@ SDLNet_Server *SDLNet_CreateServer(SDLNet_Address *addr, Uint16 port)
     }
 
     int zero = 0;
-    setsockopt(server->handle, SOL_IPV6, IPV6_V6ONLY, (const char *) &zero, sizeof (zero));  // if this fails, oh well.
+    setsockopt(server->handle, IPPROTO_IPV6, IPV6_V6ONLY, (const char *) &zero, sizeof (zero));  // if this fails, oh well.
 
     int rc = bind(server->handle, addrwithport->ai_addr, addrwithport->ai_addrlen);
     freeaddrinfo(addrwithport);
@@ -1289,7 +1289,7 @@ SDLNet_DatagramSocket *SDLNet_CreateDatagramSocket(SDLNet_Address *addr, Uint16
     }
 
     int zero = 0;
-    setsockopt(sock->handle, SOL_IPV6, IPV6_V6ONLY, (const char *) &zero, sizeof (zero));  // if this fails, oh well.
+    setsockopt(sock->handle, IPPROTO_IPV6, IPV6_V6ONLY, (const char *) &zero, sizeof (zero));  // if this fails, oh well.
 
     const int rc = bind(sock->handle, addrwithport->ai_addr, addrwithport->ai_addrlen);
     freeaddrinfo(addrwithport);