Files
ports/mail/isync/patches/patch-src_socket_h
kn cca77acf03 Backout upstream commit via local patch instead of fetching it
Reminded by sthen:

Changing the contents of a patchfile (or distfile) without changing
the filename breaks bulk builds, which share distfiles between a range
of -stable and -current machines, building from different versions of
the ports tree, with builds lasting up to around a month.

sr.ht includes the version number of git at the bottom of patches,
so it's guaranteed to change again.
2025-03-18 22:34:44 +00:00

20 lines
625 B
Plaintext

Backout ec50c55c36887b86b0143a265acae4b22d117fe9 "make DNS lookup asynchronous"
doing fork(2) for async getaddrinfo(3) to avoid pledging "proc".
Index: src/socket.h
--- src/socket.h.orig
+++ src/socket.h
@@ -57,7 +57,11 @@ typedef struct {
int fd;
int state;
const server_conf_t *conf; /* needed during connect */
- char *addrs, *addrs_end, *curr_addr; // needed during connect; assumed to be int-aligned
+#ifdef HAVE_IPV6
+ struct addrinfo *addrs, *curr_addr; /* needed during connect */
+#else
+ struct addr_info *addrs, *curr_addr; /* needed during connect */
+#endif
char *name;
#ifdef HAVE_LIBSSL
SSL *ssl;