1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 04:57:45 +00:00

Ports/SDL2_net: Update to 2.2.0

This commit is contained in:
Tim Schumacher 2022-08-21 16:28:35 +02:00 committed by Linus Groh
parent ebf713da60
commit 4678028842
6 changed files with 22 additions and 63 deletions

View file

@ -9,10 +9,10 @@ FIXME: We don't know why yet.
1 file changed, 4 insertions(+)
diff --git a/SDLnet.c b/SDLnet.c
index 53d125a..87eab4c 100644
index 24eb05b..847b185 100644
--- a/SDLnet.c
+++ b/SDLnet.c
@@ -184,6 +184,10 @@ const char *SDLNet_ResolveIP(const IPaddress *ip)
@@ -218,6 +218,10 @@ const char *SDLNet_ResolveIP(const IPaddress *ip)
return inet_ntoa(in);
}

View file

@ -1,21 +0,0 @@
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] Include sys/select.h
---
SDLnetsys.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/SDLnetsys.h b/SDLnetsys.h
index 6f6dfae..bd9139d 100644
--- a/SDLnetsys.h
+++ b/SDLnetsys.h
@@ -46,6 +46,7 @@ typedef int socklen_t;
#include <iphlpapi.h>
#else /* UNIX */
#include <sys/types.h>
+#include <sys/select.h>
#ifdef __FreeBSD__
#include <sys/socket.h>
#endif

View file

@ -13,15 +13,15 @@ Fix that by just adding the appropriate configuration options for
automatically using libtool, without having to manually link the
static library into a shared library.
---
configure | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
configure | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/configure b/configure
index 8c1d2d4..8ea327f 100755
index 216f37b..ca3f8cc 100755
--- a/configure
+++ b/configure
@@ -4487,6 +4487,10 @@ sysv4 | sysv4.3*)
tpf*)
@@ -5104,6 +5104,10 @@ tpf*)
os2*)
lt_cv_deplibs_check_method=pass_all
;;
+
@ -31,7 +31,7 @@ index 8c1d2d4..8ea327f 100755
esac
fi
@@ -7272,6 +7276,10 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
@@ -7777,6 +7781,10 @@ printf %s "checking for $compiler option to produce PIC... " >&6; }
lt_prog_compiler_static='-Bstatic'
;;
@ -42,7 +42,7 @@ index 8c1d2d4..8ea327f 100755
*)
lt_prog_compiler_can_build_shared=no
;;
@@ -8508,6 +8516,10 @@ rm -f core conftest.err conftest.$ac_objext \
@@ -9065,6 +9073,10 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \
hardcode_shlibpath_var=no
;;
@ -53,25 +53,7 @@ index 8c1d2d4..8ea327f 100755
*)
ld_shlibs=no
;;
@@ -9410,6 +9422,17 @@ uts4*)
shlibpath_var=LD_LIBRARY_PATH
;;
+serenity*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}${versuffix} ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}${major}'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ dynamic_linker='SerenityOS LibELF'
+ ;;
+
*)
dynamic_linker=no
;;
@@ -14947,6 +14970,17 @@ uts4*)
@@ -9990,6 +10002,17 @@ uts4*)
shlibpath_var=LD_LIBRARY_PATH
;;

View file

@ -6,12 +6,7 @@ Undefine 'SIOCGIFCONF' on serenity
FIXME: We don't know why yet.
## `0002-Include-sys-select.h.patch`
Include sys/select.h
## `0003-libtool-Enable-shared-library-support-for-SerenityOS.patch`
## `0002-libtool-Enable-shared-library-support-for-SerenityOS.patch`
libtool: Enable shared library support for SerenityOS