mirror of
https://github.com/openbsd/ports.git
synced 2026-06-18 07:24:23 +02:00
cca77acf03
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.
20 lines
625 B
Plaintext
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;
|