From d657a14f520dbfbe163828460f1c2f91f5bcf769 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 6 Apr 2026 21:34:23 -0700
Subject: [PATCH] Fixed warning: 'HAVE_GETIFADDRS' macro redefined
---
game/lobby.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/game/lobby.cpp b/game/lobby.cpp
index 395ce6a4..9ac49289 100644
--- a/game/lobby.cpp
+++ b/game/lobby.cpp
@@ -35,8 +35,10 @@
#endif
#ifdef SDL_PLATFORM_APPLE
+#ifndef HAVE_GETIFADDRS
#define HAVE_GETIFADDRS
#endif
+#endif
#ifdef HAVE_GETIFADDRS
#include <ifaddrs.h>
#include <netinet/in.h>