1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 06:38:10 +00:00

Ports: Add port for SDL2_net

This commit is contained in:
Gunnar Beutner 2021-06-16 11:08:32 +02:00 committed by Andreas Kling
parent f589acaac9
commit dd35bd158e
5 changed files with 50 additions and 0 deletions

View file

@ -0,0 +1,14 @@
diff -Naur SDL2_net-2.0.1/SDLnet.c SDL2_net-2.0.1.serenity/SDLnet.c
--- SDL2_net-2.0.1/SDLnet.c 2016-01-03 08:57:09.000000000 +0100
+++ SDL2_net-2.0.1.serenity/SDLnet.c 2021-06-16 10:48:32.073734588 +0200
@@ -184,6 +184,10 @@
return inet_ntoa(in);
}
+#ifdef __serenity__
+#undef SIOCGIFCONF
+#endif
+
int SDLNet_GetLocalAddresses(IPaddress *addresses, int maxcount)
{
int count = 0;