mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:57:35 +00:00
Ports: Update tcl's patches to use git patches
This commit is contained in:
parent
ee557a4145
commit
6f6d1a8f76
2 changed files with 25 additions and 5 deletions
40
Ports/tcl/patches/0001-Remove-uses-of-ipv6.patch
Normal file
40
Ports/tcl/patches/0001-Remove-uses-of-ipv6.patch
Normal file
|
@ -0,0 +1,40 @@
|
|||
From 51db9b91674f5ce8709896f1f752bbed7680fe55 Mon Sep 17 00:00:00 2001
|
||||
From: Gunnar Beutner <gbeutner@serenityos.org>
|
||||
Date: Tue, 27 Apr 2021 14:58:09 +0200
|
||||
Subject: [PATCH] Remove uses of ipv6
|
||||
|
||||
---
|
||||
tclUnixSock.c | 5 +++++
|
||||
1 file changed, 5 insertions(+)
|
||||
|
||||
diff --git a/tclUnixSock.c b/tclUnixSock.c
|
||||
index 1a54914..121f8a4 100644
|
||||
--- a/tclUnixSock.c
|
||||
+++ b/tclUnixSock.c
|
||||
@@ -706,6 +706,7 @@ static inline int
|
||||
IPv6AddressNeedsNumericRendering(
|
||||
struct in6_addr addr)
|
||||
{
|
||||
+#ifndef __serenity__
|
||||
if (IN6_ARE_ADDR_EQUAL(&addr, &in6addr_any)) {
|
||||
return 1;
|
||||
}
|
||||
@@ -716,11 +717,15 @@ IPv6AddressNeedsNumericRendering(
|
||||
*/
|
||||
|
||||
if (!IN6_IS_ADDR_V4MAPPED(&addr)) {
|
||||
+#else
|
||||
return 0;
|
||||
+#endif
|
||||
+#ifndef __serenity__
|
||||
}
|
||||
|
||||
return (addr.s6_addr[12] == 0 && addr.s6_addr[13] == 0
|
||||
&& addr.s6_addr[14] == 0 && addr.s6_addr[15] == 0);
|
||||
+#endif
|
||||
}
|
||||
#if defined (__clang__) || ((__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 5))))
|
||||
#pragma GCC diagnostic pop
|
||||
--
|
||||
2.36.1
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue