Ports/glib: Remove patch 0008-add-missing-macro-IN6_IS_ADDR_V4MAPPED

Since we now have the 'IN6_IS_ADDR_V4MAPPED' macro in LibC this patch
is no longer needed.
This commit is contained in:
Kenneth Myhra 2021-09-19 11:10:16 +02:00 committed by Andreas Kling
parent c7422dcef7
commit 177765642e
2 changed files with 0 additions and 43 deletions

View file

@ -1,33 +0,0 @@
From f228b35ce89f2ccf6d8c84a8a35c3e7279ddb424 Mon Sep 17 00:00:00 2001
From: Kenneth Myhra <kennethmyhra@gmail.com>
Date: Thu, 12 Aug 2021 20:51:13 +0200
Subject: [PATCH 08/12] gio/gsocketaddress.c: Add missing macro
IN6_IS_ADDR_V4MAPPED
---
gio/gsocketaddress.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/gio/gsocketaddress.c b/gio/gsocketaddress.c
index 2b7e83c..88d757c 100644
--- a/gio/gsocketaddress.c
+++ b/gio/gsocketaddress.c
@@ -39,6 +39,15 @@
#include "gunixsocketaddress.h"
#endif
+#ifndef IN6_IS_ADDR_V4MAPPED
+#define IN6_IS_ADDR_V4MAPPED(a) \
+((((a)->s6_addr[0]) == 0) && \
+(((a)->s6_addr[1]) == 0) && \
+(((a)->s6_addr[2]) == 0) && \
+(((a)->s6_addr[3]) == 0) && \
+(((a)->s6_addr[4]) == 0) && \
+(((a)->s6_addr[5]) == 0xFFFF))
+#endif
/**
* SECTION:gsocketaddress
--
2.25.1

View file

@ -60,16 +60,6 @@ Somehow we get a conflict with glib's mount function. This patch renames glib's
- [X] Resolves issue(s) with our side of things
- [X] Hack
## `0008-add-missing-macro-IN6_IS_ADDR_V4MAPPED.patch`
Serenity lacks the macro 'IN6_IS_ADDR_V4MAPPED' so this patch adds such a macro.
### Status
- [ ] Local?
- [ ] Should be merged to upstream?
- [X] Resolves issue(s) with our side of things
- [X] Hack
## `0009-include-section-with-missing-functionality.patch`
This includes a bigger section with functionality that Serenity is missing.