ladybird/Ports/glib/patches/0010-stub-for-function-dn_expand.patch
2021-08-14 22:32:00 +01:00

32 lines
908 B
Diff

From 1fe4b3e57a1997dac79865b8b9790fae3597f175 Mon Sep 17 00:00:00 2001
From: Kenneth Myhra <kennethmyhra@gmail.com>
Date: Thu, 12 Aug 2021 20:56:26 +0200
Subject: [PATCH 10/12] gio/gthreadedresolver.c: Add stub for function
dn_expand.
Serenity is missing dn_expand so include a stub for it
---
gio/gthreadedresolver.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/gio/gthreadedresolver.c b/gio/gthreadedresolver.c
index 64c3b2e..ef709e0 100644
--- a/gio/gthreadedresolver.c
+++ b/gio/gthreadedresolver.c
@@ -462,6 +462,12 @@ typedef struct {
/* From bionic/libc/private/resolv_private.h */
int dn_expand(const u_char *, const u_char *, const u_char *, char *, int);
+#ifdef __serenity__
+int dn_expand(const u_char *, const u_char *, const u_char *, char *, int)
+{
+ return 0;
+}
+#endif
#define dn_skipname __dn_skipname
int dn_skipname(const u_char *, const u_char *);
--
2.25.1