mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:38:11 +00:00
25 lines
632 B
Diff
25 lines
632 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Gunnar Beutner <gbeutner@serenityos.org>
|
|
Date: Wed, 16 Jun 2021 11:08:32 +0200
|
|
Subject: [PATCH] Undefine 'SIOCGIFCONF' on serenity
|
|
|
|
FIXME: We don't know why yet.
|
|
---
|
|
SDLnet.c | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/SDLnet.c b/SDLnet.c
|
|
index 24eb05b..847b185 100644
|
|
--- a/SDLnet.c
|
|
+++ b/SDLnet.c
|
|
@@ -218,6 +218,10 @@ const char *SDLNet_ResolveIP(const IPaddress *ip)
|
|
return inet_ntoa(in);
|
|
}
|
|
|
|
+#ifdef __serenity__
|
|
+#undef SIOCGIFCONF
|
|
+#endif
|
|
+
|
|
int SDLNet_GetLocalAddresses(IPaddress *addresses, int maxcount)
|
|
{
|
|
int count = 0;
|