From e70c903d0e023231f6e47bbc53ebd3677fdd9431 Mon Sep 17 00:00:00 2001
From: Epifanov Ivan <[EMAIL REDACTED]>
Date: Thu, 19 Mar 2026 16:39:52 +0300
Subject: [PATCH] Guard ifaddrs.h with same guard as getifaddrs call
---
src/SDL_net.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/SDL_net.c b/src/SDL_net.c
index 4e699d2..9051044 100644
--- a/src/SDL_net.c
+++ b/src/SDL_net.c
@@ -188,8 +188,10 @@ static int WindowsPoll(struct pollfd *fds, unsigned int nfds, int timeout)
#include <linux/netlink.h>
#include <linux/rtnetlink.h>
#else
+#if defined(SDL_PLATFORM_LINUX) || defined(SDL_PLATFORM_ANDROID) || defined(SDL_PLATFORM_APPLE) || defined(SDL_PLATFORM_FREEBSD) || defined(SDL_PLATFORM_OPENBSD) || defined(SDL_PLATFORM_NETBSD)
#include <ifaddrs.h>
#endif
+#endif
#define INVALID_SOCKET -1
#define SOCKET_ERROR -1