Ports: Remove wchar parts from openssh patches

This commit is contained in:
Tim Schumacher 2021-12-21 19:38:47 +01:00 committed by Brian Gianforcaro
parent 939469c831
commit 1145638de5
Notes: sideshowbarker 2024-07-17 22:24:17 +09:00

View File

@ -150,19 +150,6 @@ index 554ceb0b..67464ef2 100644
#include <netinet/ip.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
diff --git a/openbsd-compat/bsd-misc.c b/openbsd-compat/bsd-misc.c
index 059b6d3b..2a248c81 100644
--- a/openbsd-compat/bsd-misc.c
+++ b/openbsd-compat/bsd-misc.c
@@ -362,7 +362,7 @@ pledge(const char *promises, const char *paths[])
}
#endif
-#ifndef HAVE_MBTOWC
+#if !defined(HAVE_MBTOWC) && !defined(__serenity__)
/* a mbtowc that only supports ASCII */
int
mbtowc(wchar_t *pwc, const char *s, size_t n)
diff --git a/openbsd-compat/getrrsetbyname-ldns.c b/openbsd-compat/getrrsetbyname-ldns.c
index 4647b623..d684f6fb 100644
--- a/openbsd-compat/getrrsetbyname-ldns.c