From b35a64dd7d5278af859ff8cca1fbe42d2c308ac0 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Sun, 7 Jul 2024 18:46:19 +1000 Subject: [PATCH] Cast to sockaddr * in systemd interface. Fixes build with musl libx. bz#3707. --- openbsd-compat/port-linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbsd-compat/port-linux.c b/openbsd-compat/port-linux.c index 4c024c6d2..8adfec5a7 100644 --- a/openbsd-compat/port-linux.c +++ b/openbsd-compat/port-linux.c @@ -366,7 +366,7 @@ ssh_systemd_notify(const char *fmt, ...) error_f("socket \"%s\": %s", path, strerror(errno)); goto out; } - if (connect(fd, &addr, sizeof(addr)) != 0) { + if (connect(fd, (struct sockaddr *)&addr, sizeof(addr)) != 0) { error_f("socket \"%s\" connect: %s", path, strerror(errno)); goto out; }